1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| Quintiq file version 2.0
| #parent: #root
| Method Convert
| {
| TextBody:
| [*
| pisp := ProductInStockingPoint_MP::FindProductInStockingPointTypeIndex( this.ProductID(), this.StockingPointID() );
| account := Account_MP::FindAccountTypeIndex( 'Inventory location preference cost' );
|
| if( not isnull( pisp ) and not isnull( account ) )
| {
|
| InventoryValueAndCost::Create( OS::GenerateGUIDAsString(),
| pisp.Product_MP(),
| pisp.StockingPoint_MP(),
| account,
| 'Inventory holding',
| this.Start(),
| this.PreferenceBonus(),
| false );
| }
| *]
| }
|
|