| Quintiq file version 2.0 | 
| #parent: #root | 
| StaticMethod Update ( | 
|   Strategys strategies, | 
|   Boolean isbatcheditmassscalingfactor, | 
|   Real massscalingfactor, | 
|   Boolean isbatcheditmonetaryscalingfactor, | 
|   Real monetaryscalingfactor, | 
|   Boolean isbatchedittimescalingfactor, | 
|   Real timescalingfactor, | 
|   Boolean isbatchedittimeaccountscalingfactor, | 
|   Real timeaccountscalingfactor, | 
|   Boolean isbatcheditinventoryholdingscalingfactor, | 
|   Real inventoryholdingscalingfactor, | 
|   Boolean isbatcheditlastautoscalingrun, | 
|   DateTime lastautoscalingrun | 
| ) | 
| { | 
|   Description: "Batch edit strategies' scaling factor method" | 
|   TextBody: | 
|   [* | 
|     // Batch edit strategies' scaling factor method | 
|     // Traverse the selected set of strategies | 
|     traverse( strategies, Elements, strategy ) | 
|     { | 
|       // Get back the strategy level's value if the batch edit check boxes are not checked, instead of from UI. | 
|       if ( not isbatcheditmassscalingfactor ) | 
|       { | 
|         massscalingfactor := strategy.MassScalingFactor(); | 
|       } | 
|       if ( not isbatcheditmonetaryscalingfactor ) | 
|       { | 
|         monetaryscalingfactor := strategy.MonetaryScalingFactor(); | 
|       } | 
|       if ( not isbatchedittimescalingfactor ) | 
|       { | 
|         timescalingfactor := strategy.TimeScalingFactor(); | 
|       } | 
|       if ( not isbatchedittimeaccountscalingfactor ) | 
|       { | 
|         timeaccountscalingfactor := strategy.TimeAccountScalingFactor(); | 
|       } | 
|       if ( not isbatcheditinventoryholdingscalingfactor ) | 
|       { | 
|         inventoryholdingscalingfactor := strategy.InventoryHoldingScalingFactor(); | 
|       } | 
|       if ( not isbatcheditlastautoscalingrun ) | 
|       { | 
|         lastautoscalingrun := strategy.LastAutoScalingRun(); | 
|       } | 
|        | 
|       // Update strategy | 
|       strategy.Update( massscalingfactor, | 
|                        monetaryscalingfactor, | 
|                        timescalingfactor, | 
|                        timeaccountscalingfactor, | 
|                        inventoryholdingscalingfactor, | 
|                        lastautoscalingrun ); | 
|     } | 
|   *] | 
| } |