From 87dab14576f4fde8e8fc59d5271f463a9900359a Mon Sep 17 00:00:00 2001 From: Achilles Rasquinha Date: Thu, 8 Mar 2018 14:21:48 +0530 Subject: [PATCH] removed has_key --- erpnext/controllers/taxes_and_totals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/controllers/taxes_and_totals.py b/erpnext/controllers/taxes_and_totals.py index 008ce6e1e37..047ef4a40e3 100644 --- a/erpnext/controllers/taxes_and_totals.py +++ b/erpnext/controllers/taxes_and_totals.py @@ -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