- 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
This commit is contained in:
Heng Sin Low 2009-06-04 09:18:27 +00:00
parent 197c5bd9e2
commit 554ca9727b
1 changed files with 2 additions and 2 deletions

View File

@ -387,11 +387,11 @@ public class MCost extends X_M_Cost
{
BigDecimal price = pos[i].getPricePO();
if (price == null || price.signum() == 0)
price = pos[0].getPriceList();
price = pos[i].getPriceList();
if (price != null && price.signum() != 0)
{
price = MConversionRate.convert(product.getCtx(), price,
pos[0].getC_Currency_ID(), as.getC_Currency_ID(),
pos[i].getC_Currency_ID(), as.getC_Currency_ID(),
as.getAD_Client_ID(), Org_ID);
if (price != null && price.signum() != 0)
{