From 964b4387b4b3ba025c996b1f04fa75f72ae5da09 Mon Sep 17 00:00:00 2001
From: renhao <renhui.hao@capgemini.com>
Date: 星期五, 22 九月 2023 14:28:48 +0800
Subject: [PATCH] Merge remote-tracking branch 'refs/remotes/origin/dev'

---
 _Main/BL/Type_MappingBOM/StaticMethod_CreateTestData.qbl |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/_Main/BL/Type_MappingBOM/StaticMethod_CreateTestData.qbl b/_Main/BL/Type_MappingBOM/StaticMethod_CreateTestData.qbl
index 2c92dc7..d374c5e 100644
--- a/_Main/BL/Type_MappingBOM/StaticMethod_CreateTestData.qbl
+++ b/_Main/BL/Type_MappingBOM/StaticMethod_CreateTestData.qbl
@@ -3,19 +3,20 @@
 StaticMethod CreateTestData (
   MacroPlan parent,
   String businessType,
-  String orgCode
+  String orgCode,
+  String productCode
 ) as MappingBOM
 {
   TextBody:
   [*
     // yypsybs Sep-18-2023 (created)
-    value := select( parent, MappingBOM, bom, bom.BusinessType() = businessType and bom.OrganCode() = orgCode );
+    value := select( parent, MappingBOM, bom, bom.BusinessType() = businessType and bom.OrganCode() = orgCode and bom.ProductCode() = productCode );
     if( isnull( value ) ) {
       value := parent.MappingBOM( relnew, 
                                   BusinessType := businessType,
                                   OrganCode := orgCode,
+                                  ProductCode := productCode, 
                                   ProcessSection := "", 
-                                  ProductCode := "", 
                                   ComponentCode := "", 
                                   AlternativeMaterialCode := "" );
     }

--
Gitblit v1.9.3