[minor] [fix] [patch] change item wise tax

This commit is contained in:
Anand Doshi 2013-07-25 13:50:51 +05:30
parent 7d3e75da23
commit c30988b8a4

View File

@ -16,8 +16,9 @@ def execute():
except ValueError:
out = {}
for t in item_wise_tax_detail.split("\n"):
if ":" in t:
account_head, amount = t.split(":")
if " : " in t:
split_index = t.rfind(" : ")
account_head, amount = t[:split_index], t[split_index+3:]
out[account_head.strip()] = flt(amount.strip())
if out: