| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 | | Quintiq file version 2.0 |  | #parent: #root |  | Method GetUOMConversionFactor ( |  |   UnitOfMeasure_MP targetuom |  | ) as Real |  | { |  |   Description: 'Retrieves the conversion factor from the PISP UoM to the target UoM' |  |   TextBody: |  |   [* |  |     // edz1 Oct-31-2016 (created) |  |      |  |     sourceuom := this.ProductInStockingPoint_MP().UnitOfMeasure_MP(); |  |     product := this.ProductInStockingPoint_MP().Product_MP(); |  |     uomconversion := guard( sourceuom.GetConversionFactor( targetuom, product ), 1.0 ); |  |      |  |     return uomconversion; |  |   *] |  | } | 
 |