- Initial cost from m_product_po is wrong if m_product_po.c_uom_id <> m_product.c_uom_id
- fixed a typo error: should be i instead of 0
- Need to do checking after uom conversion
This commit is contained in:
Heng Sin Low 2009-06-04 09:20:58 +00:00
parent 554ca9727b
commit 421f88cdb3
1 changed files with 3 additions and 0 deletions

View File

@ -400,6 +400,9 @@ public class MCost extends X_M_Cost
price = MUOMConversion.convertProductTo (Env.getCtx(), product.getM_Product_ID(),
pos[i].getC_UOM_ID(), price);
}
}
if (price != null && price.signum() != 0)
{
retValue = price;
s_log.fine(product.getName() + ", Product_PO = " + retValue);
return retValue;