[minor] [fix] [patch] change item wise tax
This commit is contained in:
parent
7d3e75da23
commit
c30988b8a4
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user