fixes for gl entries in purchase invoice

This commit is contained in:
Nabin Hait 2013-02-01 17:14:30 +05:30
parent 982a0a0e0a
commit 41434f1eb4

View File

@ -434,7 +434,7 @@ class DocType(BuyingController):
)
# tax table gl entries
for tax in getlist(self.doclist, "other_charges"):
for tax in getlist(self.doclist, "purchase_tax_details"):
if tax.category in ("Total", "Valuation and Total") and flt(tax.tax_amount):
valuation_tax += flt(tax.tax_amount)