From 13296fd8bb887ffde341bd93a6497ffa0ff5c7f4 Mon Sep 17 00:00:00 2001 From: yanyuan <yuan.yan@capgemini.com> Date: 星期三, 06 九月 2023 18:04:00 +0800 Subject: [PATCH] Fix the ExtenalSupply & ActualPISPIP --- _Main/BL/Type_MacroPlan/Method_MappingExternalSupplyData.qbl | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/_Main/BL/Type_MacroPlan/Method_MappingExternalSupplyData.qbl b/_Main/BL/Type_MacroPlan/Method_MappingExternalSupplyData.qbl index 7072e59..7295bad 100644 --- a/_Main/BL/Type_MacroPlan/Method_MappingExternalSupplyData.qbl +++ b/_Main/BL/Type_MacroPlan/Method_MappingExternalSupplyData.qbl @@ -30,15 +30,23 @@ for( i :=0 ;i < businessTypes.Size();i++ ){ businessType := businessTypes.Element( i); if( product.BusinessType() = businessType and not product.IsCommon()){ - InventorySupply::Create(externalSupply.ID(),productMP,stockingpoint,externalSupply.Date(),externalSupply.ManufacturedDate(),externalSupply.UserQuantity(),"鍦ㄩ�斿湪鍒�",true); + InventorySupply::CreateOrUpdate( externalSupply.ID(), + productMP, + stockingpoint, + externalSupply.Date(), + externalSupply.ManufacturedDate(), + externalSupply.UserQuantity(),"鍦ㄩ�斿湪鍒�"); } } }else{ - // productMP := Product_MP::FindById( this, externalSupply.ProductID() ); - // stockingpoint := StockingPoint_MP::FindById( this, externalSupply.StockingPointID() ); if( not isnull( stockingpoint) and not isnull( productMP)){ - InventorySupply::Create(externalSupply.ID(),productMP,stockingpoint,externalSupply.Date(),externalSupply.ManufacturedDate(),externalSupply.UserQuantity(),"鍦ㄩ�斿湪鍒�",true); + InventorySupply::CreateOrUpdate( externalSupply.ID(), + productMP, + stockingpoint, + externalSupply.Date(), + externalSupply.ManufacturedDate(), + externalSupply.UserQuantity(),"鍦ㄩ�斿湪鍒�"); } } -- Gitblit v1.9.3