IDEMPIERE-3054 Issue with summary tax / fix roundings on posting for summary taxes (still issues with multiple lines)

This commit is contained in:
Carlos Ruiz 2016-03-17 23:43:47 +01:00
parent b1aabc6c78
commit 976bcf5c49
1 changed files with 5 additions and 0 deletions

View File

@ -260,9 +260,14 @@ public class Doc_Invoice extends Doc
if (mTax.getC_Tax_ID() == m_taxes[i].getC_Tax_ID())
{
dls[j].setLineNetAmtDifference(diff);
m_taxes[i].addIncludedTax(diff.negate());
diff = Env.ZERO;
break;
}
}
if (diff.signum() == 0) {
break;
}
} // for all lines
} // tax difference
} // for all taxes