lazhen
2024-11-04 9cc08f0b6862baf1b50c0702e87a3c4f39f40a52
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 SetRecurrencePeriodWithNrOfOccurrences (
  Number nrOfOccurrences_i
)
{
  Description:
  [*
    Set a recurrence period that recurs for a specific number of occurrences..
    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.SetRecurrencePeriodWithNrOfOccurrences( startDate, nrOfOccurrences_i );
  *]
}