Quintiq file version 2.0 
 | 
#parent: #root 
 | 
StaticMethod Update ( 
 | 
  FeedbackPeriodTaskOperations feedbackoperation, 
 | 
  Boolean islocked, 
 | 
  Boolean isbatcheditislocked, 
 | 
  Real quantity, 
 | 
  Boolean isbatcheditquantity, 
 | 
  String description, 
 | 
  Boolean isbatcheditdescription 
 | 
) 
 | 
{ 
 | 
  Description: 'Update the quantity and / or description  when batchEdit' 
 | 
  TextBody: 
 | 
  [* 
 | 
    // Traverse the selected set of FeedbackOperations to batch update them 
 | 
    traverse( feedbackoperation, Elements, fo ) 
 | 
    { 
 | 
      if( not isbatcheditislocked ) 
 | 
      { 
 | 
        islocked := fo.IsLocked(); 
 | 
      } 
 | 
       
 | 
      if( not isbatcheditquantity ) 
 | 
      { 
 | 
        quantity := fo.FeedbackQuantity(); 
 | 
      } 
 | 
       
 | 
      if( not isbatcheditdescription ) 
 | 
      { 
 | 
        description := fo.Description(); 
 | 
      } 
 | 
     
 | 
      fo.Update( quantity, description, false );   
 | 
      fo.IsLocked( islocked ); 
 | 
    } 
 | 
  *] 
 | 
} 
 |