1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  StaticMethod CanEdit ( 
 |    output String feedback_o, 
 |    AccountCosts accountcosts 
 |  ) declarative remote as Boolean 
 |  { 
 |    Description: 'Return true if account costs can be edited in batch' 
 |    TextBody: 
 |    [* 
 |      // soh yee Nov-6-2013 (created) 
 |       
 |      feedback_o := ''; 
 |       
 |      if( selectuniquevalues( accountcosts, Elements, cost, true, cost.AccountAssignment().CostDriver() ).Size() > 1 ) 
 |      { 
 |        feedback_o := Translations::MP_AccountCost_CanEdit(); 
 |      } 
 |       
 |      return feedback_o = ''; 
 |    *] 
 |  } 
 |  
  |