From 55bd572c59049674709fa05cbfdddba2132c68f9 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Sat, 10 Feb 2007 16:39:09 +0000 Subject: [PATCH] bug fix [ 1656829 ] Problem when there is not tax selected in vendor invoice --- base/src/org/compiere/model/CalloutInvoice.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/src/org/compiere/model/CalloutInvoice.java b/base/src/org/compiere/model/CalloutInvoice.java index b9f9b2ce0d..6f07ef390e 100644 --- a/base/src/org/compiere/model/CalloutInvoice.java +++ b/base/src/org/compiere/model/CalloutInvoice.java @@ -612,7 +612,7 @@ public class CalloutInvoice extends CalloutEngine boolean IsSOTrx = "Y".equals(Env.getContext(Env.getCtx(), WindowNo, "IsSOTrx")); if (!IsSOTrx) { - BigDecimal TaxAmt = null; + BigDecimal TaxAmt = Env.ZERO; // teo_sarca: [ 1656829 ] Problem when there is not tax selected in vendor invoice if (mField.getColumnName().equals("TaxAmt")) { TaxAmt = (BigDecimal)mTab.getValue("TaxAmt");