1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  StaticMethod SynchronizeToNewSupply ( 
 |    MacroPlan macroPlan, 
 |    OfflinePlanTable opt 
 |  ) 
 |  { 
 |    TextBody: 
 |    [* 
 |      cells := selectset( opt, OfflinePlanRow.OfflinePlanCell, tempOPC, tempOPC.OfflinePlanRow().Type() = "1" and tempOPC.OfflinePlanColumn().ColumnDate() >= macroPlan.StartOfPlanning().Date() and tempOPC.IsQuantityChange() ); 
 |       
 |      traverse ( cells, Elements, cell ) { 
 |       pto := select( macroPlan, Unit.Operation.PeriodTaskOperation, tempPTO, 
 |                      tempPTO.Operation().UnitID() = cell.OfflinePlanRow().ProductionLine() and 
 |                      tempPTO.Start().Date()       = cell.OfflinePlanColumn().ColumnDate() ); 
 |        pto.Update( cell.Quantity(), true ); 
 |      } 
 |    *] 
 |  } 
 |  
  |