| 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
27
28
29
30
31
32
33
34
35
 | | Quintiq file version 2.0 |  | #parent: #root |  | StaticMethod CreateOrUpdateForUnitPeriods ( |  |   UnitPeriods unitperiods, |  |   Boolean isbatcheditpercentage, |  |   Real actualutilizationpercentage, |  |   Boolean isbatcheditquantity, |  |   Real actualtotalavailablequantity, |  |   Boolean isbatcheditduration, |  |   Duration actualtotalavailableduration, |  |   Boolean isbatcheditdescription, |  |   String description |  | ) |  | { |  |   Description: 'Update the unit period ActualUtilizationPercentage or ActualTotalAvailableCapacity' |  |   TextBody: |  |   [* |  |     // desmondt Aug-3-2015 (created) |  |     isbatchedit := unitperiods.Size() > 1; |  |      |  |     traverse( unitperiods, Elements, e ) |  |     { |  |       ActualUnitPeriod::CreateOrUpdateForUnitPeriod( e, |  |                                                      isbatchedit, |  |                                                      isbatcheditpercentage, |  |                                                      actualutilizationpercentage, |  |                                                      isbatcheditquantity, |  |                                                      actualtotalavailablequantity, |  |                                                      isbatcheditduration, |  |                                                      actualtotalavailableduration, |  |                                                      isbatcheditdescription, |  |                                                      description ); |  |     } |  |   *] |  | } | 
 |