Merge pull request #13235 from achillesrasquinha/py3

removed has_key
This commit is contained in:
Achilles Rasquinha 2018-03-08 14:22:36 +05:30 committed by GitHub
commit b2f7092f9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,7 +157,7 @@ class calculate_taxes_and_totals(object):
return current_tax_fraction
def _get_tax_rate(self, tax, item_tax_map):
if item_tax_map.has_key(tax.account_head):
if tax.account_head in item_tax_map:
return flt(item_tax_map.get(tax.account_head), self.doc.precision("rate", tax))
else:
return tax.rate