- 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:
parent
197c5bd9e2
commit
554ca9727b
|
|
@ -387,11 +387,11 @@ public class MCost extends X_M_Cost
|
||||||
{
|
{
|
||||||
BigDecimal price = pos[i].getPricePO();
|
BigDecimal price = pos[i].getPricePO();
|
||||||
if (price == null || price.signum() == 0)
|
if (price == null || price.signum() == 0)
|
||||||
price = pos[0].getPriceList();
|
price = pos[i].getPriceList();
|
||||||
if (price != null && price.signum() != 0)
|
if (price != null && price.signum() != 0)
|
||||||
{
|
{
|
||||||
price = MConversionRate.convert(product.getCtx(), price,
|
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);
|
as.getAD_Client_ID(), Org_ID);
|
||||||
if (price != null && price.signum() != 0)
|
if (price != null && price.signum() != 0)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue