fixes for gl entries in purchase invoice
This commit is contained in:
parent
2feab912a1
commit
1a2974c53d
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user