From 7738d23499684bc91a6907ddbe7f892983aa6de2 Mon Sep 17 00:00:00 2001 From: xiaoding721 <33130084+xiaoding721@users.noreply.github.com> Date: 星期三, 04 十二月 2024 17:35:13 +0800 Subject: [PATCH] Merge branch 'dev' of http://47.101.211.7:10101/r/VWED into dev --- _Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate.qbl | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/_Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate.qbl b/_Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate.qbl index e25faf2..6f4953b 100644 --- a/_Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate.qbl +++ b/_Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate.qbl @@ -1,6 +1,7 @@ Quintiq file version 2.0 #parent: #root StaticMethod Generate ( + MacroPlan macroplan, InterfaceDataset interfaceDataset, Date date, String partno, @@ -16,9 +17,15 @@ if( isnull( iid ) ){ iid := interfaceDataset.InventoryInterfaceData( relnew, Date := date, PartNumber := partno ); } + product := selectobject( macroplan, Product_MP, product, product.ID() = partno ); + 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 ); if( isnull( iidl ) ){ iid.InventoryInterfaceDataDetail( relnew, Date := date, PartNumber := partno, InventoryPoint := inventory, Fac := fac, Quantity := quantitiy ); + }else{ + iidl.Quantity( ); } *] } -- Gitblit v1.9.3