IDEMPIERE-3982 MOrderLine.setPrice should not override UnitOfMeasure

This commit is contained in:
Redhuan D. Oon 2019-06-10 18:35:52 +02:00
parent 0451bf0b4f
commit ccf591b89b
1 changed files with 2 additions and 1 deletions

View File

@ -311,7 +311,8 @@ public class MOrderLine extends X_C_OrderLine
// Calculate Discount
setDiscount(m_productPrice.getDiscount());
// Set UOM
setC_UOM_ID(m_productPrice.getC_UOM_ID());
if (getC_UOM_ID()==0)
setC_UOM_ID(m_productPrice.getC_UOM_ID());
} // setPrice
/**