| 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 CanResequence ( |  |   Campaign_MP_DELETED_Q320 targetcampaign, |  |   DateTime droptime, |  |   output String feedback_o |  | ) declarative remote as Boolean |  | { |  |   Description: 'Check if source campaign and target campaign are the same.' |  |   TextBody: |  |   [* |  |     isvalid := true; |  |      |  |     if( targetcampaign = this ) |  |     { |  |       isvalid := false; |  |       feedback_o := Translations::MP_Campaign_CanResequence_SourceAndTargetAreTheSame(); |  |     } |  |     if( droptime < this.MacroPlan().StartOfPlanning() ) |  |     { |  |       isvalid := false; |  |       feedback_o := Translations::MP_Campaign_CanResequence_DroptimeBeforePlanningHorizon();     |  |     } |  |     return isvalid; |  |   *] |  | } | 
 |