| 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
31
 | | Quintiq file version 2.0 |  | #parent: #root |  | StaticMethod Create ( |  |   ProductInStockingPoint_MPs owners, |  |   Account_MP account, |  |   String costDriver, |  |   Date start, |  |   Real cost, |  |   Boolean isFromDB |  | ) as owning InventoryValueAndCosts |  | { |  |   Description: 'Create static method: create multiple costs' |  |   TextBody: |  |   [* |  |     // Batch create cost based on input owners |  |     inventoryCosts := construct( InventoryValueAndCosts ); |  |     traverse( owners, Elements, owner ) |  |     { |  |       obj := InventoryValueAndCost::Create( owner.MacroPlan().IDHolder().GetInventoryValueAndHoldingCostID(), |  |                                             owner.Product_MP(), |  |                                             owner.StockingPoint_MP(), |  |                                             account, |  |                                             costDriver, |  |                                             start, |  |                                             cost, |  |                                             isFromDB ); |  |       inventoryCosts.Add( obj.astype( InventoryValueAndCost ) ); |  |     } |  |     return &inventoryCosts; |  |   *] |  | } | 
 |