From 29ca2c5c9cd529e410d100bd2b559f6e7f5cf3ae Mon Sep 17 00:00:00 2001 From: Nicolas Micoud Date: Fri, 25 Oct 2013 14:10:50 -0500 Subject: [PATCH] IDEMPIERE-1453 Remove warning C_Tax_ID=0 for invoice description lines --- org.adempiere.base/src/org/compiere/model/MInvoiceTax.java | 2 +- org.adempiere.base/src/org/compiere/model/MOrderTax.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/model/MInvoiceTax.java b/org.adempiere.base/src/org/compiere/model/MInvoiceTax.java index c2bb67f449..131eb4c05b 100644 --- a/org.adempiere.base/src/org/compiere/model/MInvoiceTax.java +++ b/org.adempiere.base/src/org/compiere/model/MInvoiceTax.java @@ -68,7 +68,7 @@ public class MInvoiceTax extends X_C_InvoiceTax return null; C_Tax_ID = ((Integer)old).intValue(); } - if (C_Tax_ID == 0) + if (!line.isDescription() && C_Tax_ID == 0) { s_log.warning("C_Tax_ID=0"); return null; diff --git a/org.adempiere.base/src/org/compiere/model/MOrderTax.java b/org.adempiere.base/src/org/compiere/model/MOrderTax.java index c5791b368c..5c71d4c6ff 100644 --- a/org.adempiere.base/src/org/compiere/model/MOrderTax.java +++ b/org.adempiere.base/src/org/compiere/model/MOrderTax.java @@ -69,7 +69,7 @@ public class MOrderTax extends X_C_OrderTax } C_Tax_ID = ((Integer)old).intValue(); } - if (C_Tax_ID == 0) + if (!line.isDescription() && C_Tax_ID == 0) { s_log.fine("No Tax"); return null;