1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method SetRecurrencePeriodWithEndDate ( 
 |    Date endDate_i 
 |  ) 
 |  { 
 |    Description: 
 |    [* 
 |      Set a recurrence period that ends at a specific date. 
 |      If no period exists yet, the startdate of the participation is used as startdate of the recurrence. 
 |    *] 
 |    TextBody: 
 |    [* 
 |      // If no RecurrencePeriod exists yet, use the StartDate of the Participation as StartDate of the RecurrencePeriod. 
 |      startDate := ifexpr( not isnull( this.RecurrencePeriod() ), this.RecurrencePeriod().StartDate(), this.StartDate() ); 
 |      this.SetRecurrencePeriodWithEndDate( startDate, endDate_i ); 
 |    *] 
 |  } 
 |  
  |