BF [ 1686773 ] Invoice: inconsistent use of TaxAmt, LineTotalAmt

http://sourceforge.net/tracker/?func=detail&atid=879332&aid=1686773&group_id=176962
This commit is contained in:
teo_sarca 2007-03-24 08:53:40 +00:00
parent f0bbcfb54d
commit 1a38ecddf2
1 changed files with 3 additions and 1 deletions

View File

@ -773,7 +773,9 @@ public class MInvoiceLine extends X_C_InvoiceLine
// Calculations & Rounding
setLineNetAmt();
if (getTaxAmt().compareTo(Env.ZERO) == 0)
// TaxAmt recalculations should be done if the TaxAmt is zero
// or this is an Invoice(Customer) - teo_sarca, globalqss [ 1686773 ]
if (m_IsSOTrx || getTaxAmt().compareTo(Env.ZERO) == 0)
setTaxAmt();
//
return true;