From 77dc40157d7ebff272f55055708cc8d2a1ae71ce Mon Sep 17 00:00:00 2001 From: lihongji <3117313295@qq.com> Date: 星期二, 03 十二月 2024 17:16:27 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev --- _Main/BL/Type_MachineStockData/StaticMethod_Synchronize.qbl | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/_Main/BL/Type_MachineStockData/StaticMethod_Synchronize.qbl b/_Main/BL/Type_MachineStockData/StaticMethod_Synchronize.qbl index 292e5e8..e850149 100644 --- a/_Main/BL/Type_MachineStockData/StaticMethod_Synchronize.qbl +++ b/_Main/BL/Type_MachineStockData/StaticMethod_Synchronize.qbl @@ -30,7 +30,10 @@ if( inventory.Fac() = 'DL' and inventory.Lgort() = 'All' ){ inventoryname := inventory.LineType(); } - InventoryInterfaceData::Generate( owner, inventory.DDay(), inventory.MaterialNo(), inventoryname, inventory.Fac(), [Number]inventory.Total() ); + options := DatasetFindOptions::Construct( 'MacroPlan' ).IncludeOffline( true ); //to load we must search offline datasets. + mdskey := DatasetController::FindUnique( options ); + + MDSMacroPlan::Root( mdskey ) -> InventoryInterfaceData::Generate( owner, inventory.DDay(), inventory.MaterialNo(), inventoryname, inventory.Fac(), [Number]inventory.Total() ); // sadatalist.Add( sadata ); } } -- Gitblit v1.9.3