| 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 |  | Method CreateUpdateGapPlanningPeriod ( |  |   DateTime start, |  |   DateTime end |  | ) as Period_MP |  | { |  |   TextBody: |  |   [* |  |     // ODE2 Jun-7-2017 (created) |  |      |  |     gapplanningperiod := select( this, Period_MP, period, |  |                                  period.Start() = start and period.End()= end );  |  |     if( isnull( gapplanningperiod ) ) |  |     { |  |       gapplanningperiod := Period_MP::Create( this, null( PeriodSpecification_MP ), start, end, false, true ); |  |     } |  |     else  |  |     {   |  |       gapplanningperiod.IsGapPlanning( true ); |  |       gapplanningperiod.IsDeleted( false ); // Cancel period deletion |  |     } |  |      |  |     return gapplanningperiod; |  |   *] |  | } | 
 |