From 6031e3a259a15dff61ef18bfe90f8c1b27cfcb12 Mon Sep 17 00:00:00 2001
From: lazhen <17772815105@139.com>
Date: 星期二, 03 十二月 2024 17:09:27 +0800
Subject: [PATCH] 接口同步过来的库存数据如果属于PL则除4向下取整

---
 _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