IDEMPIERE-3982 MOrderLine.setPrice should not override UnitOfMeasure
This commit is contained in:
parent
0451bf0b4f
commit
ccf591b89b
org.adempiere.base/src/org/compiere/model
|
@ -311,6 +311,7 @@ public class MOrderLine extends X_C_OrderLine
|
||||||
// Calculate Discount
|
// Calculate Discount
|
||||||
setDiscount(m_productPrice.getDiscount());
|
setDiscount(m_productPrice.getDiscount());
|
||||||
// Set UOM
|
// Set UOM
|
||||||
|
if (getC_UOM_ID()==0)
|
||||||
setC_UOM_ID(m_productPrice.getC_UOM_ID());
|
setC_UOM_ID(m_productPrice.getC_UOM_ID());
|
||||||
} // setPrice
|
} // setPrice
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue