yypsybs
2023-10-18 5fa4a6a06c62fd41731ff6cc1f1f6e031bd7436f
_Main/BL/Type_CapacityAllocationResults/StaticMethod_Test.qbl
@@ -2,14 +2,14 @@
#parent: #root
StaticMethod Test (
  MacroPlan macroPlan,
  GlobalOTDTable globalOTDTable
  GlobalOTDSOP globalOTDSOP
)
{
  TextBody:
  [*
    globalOTDTable.CapacityAllocationResults( relflush );
    globalOTDSOP.CapacityAllocationResults( relflush );
    
    capacityAllocationResultsRuleConfiguration := select( globalOTDTable, CapacityAllocationResultsRuleConfiguration, carrc,
    capacityAllocationResultsRuleConfiguration := select( globalOTDSOP, CapacityAllocationResultsRuleConfiguration, carrc,
                                                          carrc.ModuleMaterialCode() = "ProXOver 1 D2.6 A" and
                                                          carrc.StockingPointID() = "Carco Philadelphia" );
    
@@ -18,7 +18,7 @@
      traverse ( pisp, ProductInStockingPointInPeriodPlanning.astype( ProductInStockingPointInPeriodPlanningLeaf ).Supply_MP, smp, 
                 /*smp.ProductInStockingPointInPeriodPlanning().Start().Date() = Date::Construct( 2020, 4, 7 ) and*/
                 smp.Quantity() > 0 ) {                                                                  
        CapacityAllocationResults::IterativeGeneration3( macroPlan, globalOTDTable, smp, smp, 1, smp.Quantity(), capacityAllocationResultsRuleConfiguration );
        CapacityAllocationResults::IterativeGeneration3( macroPlan, globalOTDSOP, smp, smp, 1, smp.Quantity(), capacityAllocationResultsRuleConfiguration );
      }
    }
  *]