From 89c96171bb971dcaed7cf289b58ef44ca689523c Mon Sep 17 00:00:00 2001
From: limj <limj@taizhitech.com>
Date: 星期四, 21 九月 2023 09:11:20 +0800
Subject: [PATCH] Merge branch 'dev' of http://47.101.211.7:10101/r/TIANMA_JITUAN into dev_lmj

---
 _Main/BL/Type_PRData/StaticMethod_FromSupplyPlanning.qbl |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/_Main/BL/Type_PRData/StaticMethod_FromSupplyPlanning.qbl b/_Main/BL/Type_PRData/StaticMethod_FromSupplyPlanning.qbl
index 356fd18..f011f1d 100644
--- a/_Main/BL/Type_PRData/StaticMethod_FromSupplyPlanning.qbl
+++ b/_Main/BL/Type_PRData/StaticMethod_FromSupplyPlanning.qbl
@@ -1,6 +1,7 @@
 Quintiq file version 2.0
 #parent: #root
 StaticMethod FromSupplyPlanning (
+  GlobalOTDTable otdTable,
   MacroPlan macroPlan,
   MacroPlan mappingRoot,
   String mrpCalverNo
@@ -19,8 +20,8 @@
                              item.MRPCalverNo() = mrpCalverNo );
     if( isnull( oldRecords ) or oldRecords.Size() = 0 ) {
       pispips := ProductInStockingPointInPeriod::GetByMRPCalverNo( macroPlan, mrpCalverNo );
-      traverse( pispips, Elements, item ) {
-        PRData::FromSupplyPlanning( macroPlan, mappingRoot, item );
+      traverse( pispips, Elements, item, item.NewSupplyQuantity() > 0 ) {
+        PRData::FromSupplyPlanning( otdTable, macroPlan, mappingRoot, item );
       }
     }
   *]

--
Gitblit v1.9.3