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
| Quintiq file version 2.0
| #parent: #root
| StaticMethod Update (
| PostponedSalesDemandCosts postponedsdcosts,
| Product_MP product,
| StockingPoint_MP stockingpoint,
| Date start,
| Real penalty
| )
| {
| Description: 'Update a set of PostponedSalesDemandCosts'
| TextBody:
| [*
| // Wayne Apr-17-2013 (created)
|
| traverse( postponedsdcosts, Elements, postponedsdcost )
| {
| // Primary keys are disabled during batch editing
| if( postponedsdcosts.Size() > 1 )
| {
| product := postponedsdcost.Product_MP();
| stockingpoint := postponedsdcost.StockingPoint_MP();
| start := postponedsdcost.Start();
| }
|
| postponedsdcost.Update( product, stockingpoint, start, penalty, false );
| }
| *]
| }
|
|