From f3dec8f5b480474c9a3b2ea0fabb0f6b9fdc0423 Mon Sep 17 00:00:00 2001
From: renhao <renhui.hao@capgemini.com>
Date: 星期五, 13 十月 2023 17:11:34 +0800
Subject: [PATCH] Merge branch 'dev'
---
_Main/BL/Type_ManufactureLTProcessSection/StaticMethod_CreateOrUpdate0.qbl | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/_Main/BL/Type_ManufactureLTProcessSection/StaticMethod_CreateOrUpdate0.qbl b/_Main/BL/Type_ManufactureLTProcessSection/StaticMethod_CreateOrUpdate0.qbl
index b18ed17..533457a 100644
--- a/_Main/BL/Type_ManufactureLTProcessSection/StaticMethod_CreateOrUpdate0.qbl
+++ b/_Main/BL/Type_ManufactureLTProcessSection/StaticMethod_CreateOrUpdate0.qbl
@@ -1,6 +1,7 @@
Quintiq file version 2.0
#parent: #root
StaticMethod CreateOrUpdate (
+ GlobalOTDTable parent,
MacroPlan macroPlan,
String orgCode,
String productId,
@@ -17,15 +18,15 @@
TextBody:
[*
// yypsybs Aug-25-2023 (created)
- parent := select( macroPlan, ManufactureLTImputation, item, item.OrgCode() = orgCode and item.SkuID() = productId );
- if( isnull( parent ) ) {
- parent := macroPlan.ManufactureLTImputation( relnew, OrgCode := orgCode, SkuID := productId, Describe := parentDesc );
+ ltParent := select( parent, ManufactureLTImputation, item, item.OrgCode() = orgCode and item.SkuID() = productId );
+ if( isnull( ltParent ) ) {
+ ltParent := parent.ManufactureLTImputation( relnew, OrgCode := orgCode, SkuID := productId, Describe := parentDesc );
} else {
- parent.Describe( parentDesc );
+ ltParent.Describe( parentDesc );
}
- child := select( parent, ManufactureLTProcessSection, item, item.ProcessSection() = processSection and item.Sequence() = seq and item.Line() = line );
+ child := select( ltParent, ManufactureLTProcessSection, item, item.ProcessSection() = processSection and item.Sequence() = seq and item.Line() = line );
if( isnull( child ) ) {
- child := parent.ManufactureLTProcessSection( relnew,
+ child := ltParent.ManufactureLTProcessSection( relnew,
ProcessSection := processSection, Sequence := seq, Line := line, SystemLT := systemLt,
Edited := edited, EditLT := editLt, Describe := childDesc );
} else {
--
Gitblit v1.9.3