IDEMPIERE-3740 Posting Error: Source Not Balanced for Invoice with Landed Cost Distribution

This commit is contained in:
Heng Sin Low 2018-08-08 11:12:20 +08:00
parent 9dcd937950
commit 1e208691d0
1 changed files with 2 additions and 2 deletions

View File

@ -1035,7 +1035,7 @@ public class MInvoiceLine extends X_C_InvoiceLine
{
double result = getLineNetAmt().multiply(base).doubleValue();
result /= total.doubleValue();
lca.setAmt(result, getParent().getC_Currency().getCostingPrecision());
lca.setAmt(result, getParent().getC_Currency().getStdPrecision());
}
if (!lca.save()){
msgreturn = new StringBuilder("Cannot save line Allocation = ").append(lca);
@ -1170,7 +1170,7 @@ public class MInvoiceLine extends X_C_InvoiceLine
{
double result = getLineNetAmt().multiply(base).doubleValue();
result /= total.doubleValue();
lca.setAmt(result, getParent().getC_Currency().getCostingPrecision());
lca.setAmt(result, getParent().getC_Currency().getStdPrecision());
}
if (!lca.save()){
msgreturn = new StringBuilder("Cannot save line Allocation = ").append(lca);