From 2aa08c45985030bcaa4d5d1e214000f5973cda1e Mon Sep 17 00:00:00 2001 From: "hello@lv" <2256334253@qq.com> Date: Thu, 25 Apr 2024 15:00:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AE=A2=E5=8D=95=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E7=BB=93=E7=AE=97=E5=8D=95=E7=8A=B6=E6=80=81=E6=9C=AA=E6=94=B9?= =?UTF-8?q?=E5=8F=98=20close=20#847=20(#848)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: lyx <2027667395@qq.com> Reviewed-on: https://git.daoyoucloud.com/daoyoucloud/tachybase/pulls/848 Co-authored-by: hello@lv <2256334253@qq.com> Co-committed-by: hello@lv <2256334253@qq.com> --- .changeset/silly-news-exercise.md | 5 +++++ .../plugin-rental/src/server/services/record-service.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/silly-news-exercise.md diff --git a/.changeset/silly-news-exercise.md b/.changeset/silly-news-exercise.md new file mode 100644 index 000000000..707c40229 --- /dev/null +++ b/.changeset/silly-news-exercise.md @@ -0,0 +1,5 @@ +--- +"@hera/plugin-rental": patch +--- + +订单修改结算单状态未改变 diff --git a/packages/plugins/@hera/plugin-rental/src/server/services/record-service.ts b/packages/plugins/@hera/plugin-rental/src/server/services/record-service.ts index 9abd10956..907dddc76 100644 --- a/packages/plugins/@hera/plugin-rental/src/server/services/record-service.ts +++ b/packages/plugins/@hera/plugin-rental/src/server/services/record-service.ts @@ -240,7 +240,7 @@ export class RecordService { const { values, transaction, context } = options; if (!values) return; // 触发打印更新次数跳过 - if (values?.print_count) return; + if (Object.keys(values).length === 1 && values?.print_count) return; if (values?.category === RecordCategory.lease && values.contract) { const dateObject = values.date; // 结束时间添加一天,新系统选择时间都是以当天0点开始,但是导入的数据存在不是以0点开始比如2023-12-21:03.000……,提醒结算单的时间可能为2023-12-21:00.000……