| 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 |  | Method GetPeriodTaskOperationQuantity ( |  |   Real quantity |  | ) declarative remote as Real |  | { |  |   Description: 'Calculate quantity required for operation period task, given the desired new supply quantity' |  |   TextBody: |  |   [* |  |     // soh yee Jan-29-2015 (moved) |  |      |  |     // To calculate the required quantity for period task to fulfill the new supply quantity. |  |     value := 0.0; |  |     factor := PeriodTaskOperation::GetNewSupplyQuantity( 1.0, this.ProcessOutput(), this.RelativeDuration() ); |  |      |  |     if( factor > 0 ) |  |     { |  |       value := quantity / factor; |  |     } |  |      |  |     return value; |  |   *] |  | } | 
 |