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
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method CanMoveSalesSegment ( 
 |    SalesSegment_MPs information, 
 |    SalesSegment_MP target, 
 |    output String feedback_o 
 |  ) remote as Boolean 
 |  { 
 |    Description: 'Check whether the sales segment can be moved' 
 |    TextBody: 
 |    [* 
 |      feedback_o := ''; 
 |       
 |      if( exists( information, Elements, el, true, el = this ) ) 
 |      { 
 |        feedback_o := Translations::MP_SalesSegment_CanMoveSalesSegment_TargetIsSelf( this.Name() ); 
 |      } 
 |      else if( exists( information, Elements, el, this.HasDirectDescendant( el ), true ) ) 
 |      { 
 |        feedback_o := Translations::MP_SalesSegment_CanMoveSalesSegment_TargetIsDescendant( this.Name() ); 
 |      } 
 |       
 |      return feedback_o = ''; 
 |    *] 
 |  } 
 |  
  |