| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 | | Quintiq file version 2.0 |  | #parent: #root |  | StaticMethod Update ( |  |   BaseRecipeIngredients baserecipeingredients, |  |   Boolean isbatcheditmin, |  |   Real minimum, |  |   Boolean isbatcheditmax, |  |   Real maximum, |  |   Boolean isbatcheditnom, |  |   Real nominal, |  |   Boolean isfromdb |  | ) |  | { |  |   Description: 'Batch update BRI' |  |   TextBody: |  |   [* |  |     traverse( baserecipeingredients, Elements, e ) |  |     { |  |       // For readability |  |       minim := ifexpr( isbatcheditmin, minimum, e.Minimum() ); |  |       maxim := ifexpr( isbatcheditmax, maximum, e.Maximum() ); |  |       nomin := ifexpr( isbatcheditnom, nominal, e.Nominal() ); |  |        |  |       e.Update( minim,  |  |                 maxim,  |  |                 nomin,  |  |                 isfromdb ); |  |     } |  |   *] |  | } | 
 |