diff --git a/packages/plugins/@hera/plugin-rental/package.json b/packages/plugins/@hera/plugin-rental/package.json index 22bcb27b1..fbf34de51 100644 --- a/packages/plugins/@hera/plugin-rental/package.json +++ b/packages/plugins/@hera/plugin-rental/package.json @@ -1,6 +1,6 @@ { "name": "@hera/plugin-rental", - "version": "1.5.9", + "version": "1.6.0", "main": "dist/server/index.js", "displayName": "professional construction materials rental system - customized based on hera", "displayName.zh-CN": "专业建材租赁系统 - 基于赫拉定制", @@ -27,4 +27,4 @@ "keywords": [ "System management" ] -} +} \ No newline at end of file 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 dc32b333b..9abd10956 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 @@ -65,7 +65,7 @@ export class RecordService { */ async recordsAfterSave(model: MagicAttributeModel, options: CreateOptions): Promise { // 运输单导致的订单更新不必走以下订单逻辑,减少性能消耗,有waybill一定是运输单录入 - if (options.values.waybill) return; + if (options.values?.waybill) return; // 订单新建更新后(根据合同确定出入库字段) await this._setProject(model, options); // 订单发生变化时更新对应结算单的状态(需要重新计算)