limj
2023-09-21 89c96171bb971dcaed7cf289b58ef44ca689523c
_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 := "" );
    }