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 CanEdit ( 
 |    output String feedback_o, 
 |    AccountAssignments accountassignments 
 |  ) remote as Boolean 
 |  { 
 |    Description: 'Return true if account assignments can be edited in batch' 
 |    TextBody: 
 |    [* 
 |      // soh yee Nov-6-2013 (created) 
 |       
 |      feedback_o := ''; 
 |       
 |      // Only allow editing for account assignment belongs to same subclass, because different subclasses has different allowed 
 |      if( selectuniquevalues( accountassignments, Elements, aa, true, aa.DefinitionName() ).Size() > 1 ) 
 |      { 
 |        feedback_o := Translations::MP_AccountAssignment_CanEdit(); 
 |      } 
 |       
 |      return feedback_o = ''; 
 |    *] 
 |  } 
 |  
  |