feat: 订单修改结算单状态未改变 close #847 (#848)

Co-authored-by: lyx <2027667395@qq.com>
Reviewed-on: daoyoucloud/tachybase#848
Co-authored-by: hello@lv <2256334253@qq.com>
Co-committed-by: hello@lv <2256334253@qq.com>
This commit is contained in:
hello@lv 2024-04-25 15:00:01 +08:00 committed by sealday
parent b3301e19de
commit 2aa08c4598
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"@hera/plugin-rental": patch
---
订单修改结算单状态未改变

View File

@ -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……