From 20093dec32a0c814f1db43e87c904890fd8a086f Mon Sep 17 00:00:00 2001 From: lazhen <17772815105@139.com> Date: 星期五, 17 一月 2025 08:17:32 +0800 Subject: [PATCH] 库存更新Dtype逻辑修改 --- _Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate.qbl | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/_Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate.qbl b/_Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate.qbl index 8943020..2cc2f31 100644 --- a/_Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate.qbl +++ b/_Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate.qbl @@ -7,7 +7,8 @@ String partno, String inventory, String fac, - Number quantitiy + Number quantitiy, + String dtype ) as InventoryInterfaceDataDetail { TextBody: @@ -21,9 +22,9 @@ if( not isnull( product ) and exists( product.GetAllParent(), Elements, proparent, proparent.ID() = 'PL' ) ){ quantitiy := floor( [Real]quantitiy / 4 ); } - iidl := selectobject( iid, InventoryInterfaceDataDetail, detail, detail.InventoryPoint() = inventory and detail.Fac() = fac ); + iidl := selectobject( iid, InventoryInterfaceDataDetail, detail, detail.InventoryPoint() = inventory and detail.Fac() = fac and detail.Dtype() = dtype ); if( isnull( iidl ) ){ - iidl := iid.InventoryInterfaceDataDetail( relnew, Date := date, PartNumber := partno, InventoryPoint := inventory, Fac := fac, Quantity := quantitiy ); + iidl := iid.InventoryInterfaceDataDetail( relnew, Date := date, PartNumber := partno, InventoryPoint := inventory, Fac := fac, Quantity := quantitiy, Dtype := dtype ); }else{ iidl.Quantity( quantitiy ); } -- Gitblit v1.9.3