From 7e216f379c2cae5088a44a847cd93ec6bcca4c90 Mon Sep 17 00:00:00 2001
From: renhao <renhui.hao@capgemini.com>
Date: 星期三, 13 九月 2023 19:55:08 +0800
Subject: [PATCH] 1 external supply 判断
---
_Main/BL/Type_MacroPlan/Method_MappingExternalSupplyData.qbl | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/_Main/BL/Type_MacroPlan/Method_MappingExternalSupplyData.qbl b/_Main/BL/Type_MacroPlan/Method_MappingExternalSupplyData.qbl
index 1f242ac..abb42d6 100644
--- a/_Main/BL/Type_MacroPlan/Method_MappingExternalSupplyData.qbl
+++ b/_Main/BL/Type_MacroPlan/Method_MappingExternalSupplyData.qbl
@@ -26,6 +26,7 @@
if( not isnull( product)){
productMP := Product_MP :: FindProductTypeIndex( externalSupply.ProductID());
stockingpoint := select( this,StockingPoint_MP,st,st.ID() = externalSupply.StockingPointID(),true);
+ if( not isnull( stockingpoint) and not isnull( productMP)){
if( not isnull(businessTypes)){
for( i :=0 ;i < businessTypes.Size();i++ ){
@@ -41,7 +42,7 @@
}
}else{
- if( not isnull( stockingpoint) and not isnull( productMP)){
+
InventorySupply::CreateOrUpdate( externalSupply.ID(),
productMP,
stockingpoint,
--
Gitblit v1.9.3