1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  StaticMethod PostponeToNextPeriod ( 
 |    BaseSalesDemandInPeriods salesdemands, 
 |    Real qty, 
 |    Boolean ismanual 
 |  ) as BaseSalesDemandInPeriod 
 |  { 
 |    Description: 'Postpone sales demands to next period' 
 |    TextBody: 
 |    [* 
 |      bsdip := null( BaseSalesDemandInPeriod ); 
 |       
 |      traverse( salesdemands, Elements, sd, sd.CanBePostponed() ) 
 |      { 
 |        nextpispip := guard( sd.AsPlanningBaseSalesDemandInPeriod().NextPlanningPISPIP().astype( ProductInStockingPointInPeriodPlanningLeaf ), null( ProductInStockingPointInPeriodPlanningLeaf ) ); 
 |       
 |        if( not isnull( nextpispip ) ) 
 |        { 
 |          bsdip := sd.Postpone( qty, ismanual, nextpispip ); 
 |        } 
 |      } 
 |       
 |      return bsdip; 
 |    *] 
 |  } 
 |  
  |