removed has_key
This commit is contained in:
parent
9efd6e80d2
commit
87dab14576
@ -157,7 +157,7 @@ class calculate_taxes_and_totals(object):
|
|||||||
return current_tax_fraction
|
return current_tax_fraction
|
||||||
|
|
||||||
def _get_tax_rate(self, tax, item_tax_map):
|
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))
|
return flt(item_tax_map.get(tax.account_head), self.doc.precision("rate", tax))
|
||||||
else:
|
else:
|
||||||
return tax.rate
|
return tax.rate
|
||||||
|
Loading…
x
Reference in New Issue
Block a user