IDEMPIERE-3740 Posting Error: Source Not Balanced for Invoice with Landed Cost Distribution
This commit is contained in:
parent
9dcd937950
commit
1e208691d0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue