1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| Quintiq file version 2.0
| #parent: #root
| StaticMethod AutomaticallyGenerateCapacityRules (
| GlobalOTDTable globalOTDTable,
| MacroPlan macroPlan
| )
| {
| TextBody:
| [*
| targetProduct_MP := select( macroPlan, Product_MP, tempPMP, tempPMP.ID() = "Chassis - SUV 1" );
|
| period_MPS := null( Period_MPs );
| traverse ( macroPlan, PeriodSpecification_MP, psmp, psmp.ID() = "Planning periods" ) {
| period_MPS := selectsortedset( psmp, PeriodSpecificationPeriod.Period_MP, pmp, not pmp.IsHistorical(), pmp.StartDate() );
| }
|
| traverse ( targetProduct_MP, ProductInStockingPoint_MP, pisp ) {
| traverse ( period_MPS, Elements, pmp ) {
| CapacityAllocationResultsRuleConfiguration::RecursiveGeneration( macroPlan, pisp, pisp, pmp.StartDate() );
| }
| }
| *]
| }
|
|