1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  StaticMethod HasSalesSegment ( 
 |    MacroPlan macroplan, 
 |    output String feedback_o 
 |  ) declarative remote as Boolean 
 |  { 
 |    Description: 'Returns whether there is any sales segment' 
 |    TextBody: 
 |    [* 
 |      // Adhi Oct-22-2015 (created) 
 |      feedback_o := ''; 
 |       
 |      value := exists( macroplan, ActiveSalesLevel.SalesSegment_MP, salessegment, true ); 
 |       
 |      if( not value ) 
 |      { 
 |        feedback_o := Translations::MP_Designer_FormProductPlanning_HasNoValidSalesSegments(); 
 |      } 
 |       
 |      return feedback_o = ''; 
 |    *] 
 |  } 
 |  
  |