| 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
 | | Quintiq file version 2.0 |  | #parent: #root |  | StaticMethod GetDependentDemandEarliestStart ( |  |   const Period_MP period, |  |   Duration preprocessing, |  |   const GlobalParameters_MP gp, |  |   const Process_MP process |  | ) const declarative remote as DateTime |  | { |  |   Description: 'Given the period, return the start of demand' |  |   TextBody: |  |   [* |  |     value := period.Start() - preprocessing; |  |      |  |     if( gp.IsOperationLeadTimeLogicFromEnd() ) |  |      { |  |        |  |       value := Process_MP::GetDependentDemandLeadTimeStartEndPeriod( period, process.LeadTime() ); |  |      } |  |       |  |      else if( gp.IsOperationLeadTimeLogicFromMiddle() ) |  |      { |  |        |  |       value := Process_MP::GetDependentDemandLeadTimeStartMiddlePeriod( period, process.LeadTime() ); |  |      } |  |       |  |     return value; |  |   *] |  | } | 
 |