From 1a38ecddf2ec0f817457e02e0c5bd40502b1fa46 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Sat, 24 Mar 2007 08:53:40 +0000 Subject: [PATCH] BF [ 1686773 ] Invoice: inconsistent use of TaxAmt, LineTotalAmt http://sourceforge.net/tracker/?func=detail&atid=879332&aid=1686773&group_id=176962 --- base/src/org/compiere/model/MInvoiceLine.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base/src/org/compiere/model/MInvoiceLine.java b/base/src/org/compiere/model/MInvoiceLine.java index b34918f4eb..098d5994c7 100644 --- a/base/src/org/compiere/model/MInvoiceLine.java +++ b/base/src/org/compiere/model/MInvoiceLine.java @@ -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;