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