Merge pull request 'fix_record_create_err' (#465) from fix_record_create_err into @hera/dev
Reviewed-on: daoyoucloud/tachycode#465 Reviewed-by: sealday <zhanglin@daoyoucloud.com>
This commit is contained in:
commit
1ae578fe10
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hera/plugin-rental",
|
"name": "@hera/plugin-rental",
|
||||||
"version": "1.5.9",
|
"version": "1.6.0",
|
||||||
"main": "dist/server/index.js",
|
"main": "dist/server/index.js",
|
||||||
"displayName": "professional construction materials rental system - customized based on hera",
|
"displayName": "professional construction materials rental system - customized based on hera",
|
||||||
"displayName.zh-CN": "专业建材租赁系统 - 基于赫拉定制",
|
"displayName.zh-CN": "专业建材租赁系统 - 基于赫拉定制",
|
||||||
@ -27,4 +27,4 @@
|
|||||||
"keywords": [
|
"keywords": [
|
||||||
"System management"
|
"System management"
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -65,7 +65,7 @@ export class RecordService {
|
|||||||
*/
|
*/
|
||||||
async recordsAfterSave(model: MagicAttributeModel, options: CreateOptions): Promise<void> {
|
async recordsAfterSave(model: MagicAttributeModel, options: CreateOptions): Promise<void> {
|
||||||
// 运输单导致的订单更新不必走以下订单逻辑,减少性能消耗,有waybill一定是运输单录入
|
// 运输单导致的订单更新不必走以下订单逻辑,减少性能消耗,有waybill一定是运输单录入
|
||||||
if (options.values.waybill) return;
|
if (options.values?.waybill) return;
|
||||||
// 订单新建更新后(根据合同确定出入库字段)
|
// 订单新建更新后(根据合同确定出入库字段)
|
||||||
await this._setProject(model, options);
|
await this._setProject(model, options);
|
||||||
// 订单发生变化时更新对应结算单的状态(需要重新计算)
|
// 订单发生变化时更新对应结算单的状态(需要重新计算)
|
||||||
|
Loading…
Reference in New Issue
Block a user