From 883c992fbd09b3ac7c40c3fce28a5af3ec54eb90 Mon Sep 17 00:00:00 2001
From: renhao <renhui.hao@capgemini.com>
Date: 星期三, 25 十月 2023 20:43:43 +0800
Subject: [PATCH] 创建供应商供应原材料
---
_Main/BL/Type_MacroPlan/Method_DoASyncMappingOperationBOMData.qbl | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/_Main/BL/Type_MacroPlan/Method_DoASyncMappingOperationBOMData.qbl b/_Main/BL/Type_MacroPlan/Method_DoASyncMappingOperationBOMData.qbl
index 03a2581..37eb082 100644
--- a/_Main/BL/Type_MacroPlan/Method_DoASyncMappingOperationBOMData.qbl
+++ b/_Main/BL/Type_MacroPlan/Method_DoASyncMappingOperationBOMData.qbl
@@ -94,8 +94,14 @@
toCreateBomList := toCreateBomList.Union( alterCodes);
traverse( toCreateBomList, Elements, key ) {
boms := selectset( bomList, Elements, item, item.ComponentType() = "P" and item.OrganCode() + item.ComponentCode() = key );
- bom := boms.First();
- this.MappingOperationBOMDataSupplyPurchase( bom.OrganCode(), bom.ComponentCode(), bom.ComponentType());
+ if( boms.Size()=0){
+ boms := selectset( bomList, Elements, item, item.ComponentType() = "P" and item.OrganCode() + item.AlternativeMaterialCode() = key );
+ }
+ if( boms.Size()>0){
+ bom := boms.First();
+ this.MappingOperationBOMDataSupplyPurchase( bom.OrganCode(), bom.ComponentCode(), bom.ComponentType());
+ }
+
}
}
--
Gitblit v1.9.3