From ac97b8878764d0e9e8e8e3c177e385864cee616c Mon Sep 17 00:00:00 2001
From: yypsybs <yypsybs@foxmail.com>
Date: 星期三, 20 九月 2023 18:26:50 +0800
Subject: [PATCH] 年度预算产销复盘
---
_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