hongjli
2023-10-11 77b8d972800221d19bd0ea7f2a14b720920b16bb
_Main/BL/Type_CapacityAllocationResultsRuleConfiguration/StaticMethod_AutomaticallyGenerateCapacityRules.qbl
@@ -7,7 +7,7 @@
{
  TextBody:
  [*
    targetProduct_MP := select( macroPlan, Product_MP, tempPMP, tempPMP.ID() = "Chassis - SUV 1" );
    targetProduct_MP := select( macroPlan, Product_MP, tempPMP, tempPMP.ID() = "ProSports Spider D2.6 M" );
    
    period_MPS := null( Period_MPs );
    traverse ( macroPlan, PeriodSpecification_MP, psmp, psmp.ID() = "Planning periods" ) {
@@ -15,8 +15,10 @@
    }
    
    traverse ( targetProduct_MP, ProductInStockingPoint_MP, pisp ) {
      traverse ( period_MPS, Elements, pmp ) {
      traverse ( period_MPS, Elements, pmp, pmp.StartDate() = Date::Construct( 2020, 4, 1 ) ) {
        info( pmp.StartDate().Format( "Y-M2-D2" ), "    outputPISP:", pisp.Name() );
        CapacityAllocationResultsRuleConfiguration::RecursiveGeneration( macroPlan, pisp, pisp, pmp.StartDate() );
        info( "-------------------------------------------------------------------------------------------------------" );
      }
    }
  *]