renhao
2023-10-13 462215553c754d26acde8edab81b4a73f774e21e
_Main/BL/Type_ManufactureLTImputation/StaticMethod_CreateOrUpdate.qbl
@@ -1,7 +1,7 @@
Quintiq file version 2.0
#parent: #root
StaticMethod CreateOrUpdate (
  MacroPlan macroPlan,
  GlobalOTDTable parent,
  String orgCode,
  String productId,
  String desc
@@ -10,9 +10,9 @@
  TextBody:
  [*
    // yypsybs Aug-25-2023 (created)
    value := select( macroPlan, ManufactureLTImputation, item, item.OrgCode() = orgCode and item.SkuID() = productId );
    value := select( parent, ManufactureLTImputation, item, item.OrgCode() = orgCode and item.SkuID() = productId );
    if( isnull( value ) ) {
        value := macroPlan.ManufactureLTImputation( relnew, OrgCode := orgCode, SkuID := productId, Describe := desc );
        value := parent.ManufactureLTImputation( relnew, OrgCode := orgCode, SkuID := productId, Describe := desc );
    } else {
        value.Describe( desc );  
    }