| 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
 | | Quintiq file version 2.0 |  | #parent: #root |  | Method CreateInventoryHoldingCost ( |  |   MacroPlan macroplan, |  |   Product_MP product, |  |   StockingPoint_MP stockingPoint, |  |   Real costInPISPCurrency |  | ) as AccountCost |  | { |  |   Description: 'Use product and stocking to create inventory holding cost subjected to product in stocking point currency.' |  |   TextBody: |  |   [* |  |     isFromDB := false; |  |     inventoryHoldingCost := this.GetAccountByName( macroplan, 'Inventory holding cost' ); |  |     return InventoryValueAndCost::Create( macroplan.IDHolder().GetInventoryValueAndHoldingCostID(), |  |                                           product, |  |                                           stockingPoint, |  |                                           inventoryHoldingCost, |  |                                           Translations::MP_AccountAssignmentCostDriverInventoryHolding(), |  |                                           macroplan.StartOfPlanning().Date(), |  |                                           costInPISPCurrency /* PISP cost currency is subjected to conversion rate [Demo data: 1 EURO = 10 RMB ] */, |  |                                           isFromDB ); |  |   *] |  |   InterfaceProperties { Accessibility: 'Module' } |  | } | 
 |