From 1a2974c53d53dd47f5ad556b7ae107001cc6b1af Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 1 Feb 2013 16:50:54 +0530 Subject: [PATCH] fixes for gl entries in purchase invoice --- accounts/doctype/purchase_invoice/purchase_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/doctype/purchase_invoice/purchase_invoice.py b/accounts/doctype/purchase_invoice/purchase_invoice.py index 0db7ea81572..4d582e3def1 100644 --- a/accounts/doctype/purchase_invoice/purchase_invoice.py +++ b/accounts/doctype/purchase_invoice/purchase_invoice.py @@ -435,7 +435,7 @@ class DocType(BuyingController): # tax table gl entries for tax in getlist(self.doclist, "other_charges"): - if tax.category in ("Total", "Valuation and Total"): + if tax.category in ("Total", "Valuation and Total") and flt(tax.tax_amount): valuation_tax += flt(tax.tax_amount) gl_entries.append(