Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
commit
384ee8788e
@ -16,8 +16,9 @@ def execute():
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
out = {}
|
out = {}
|
||||||
for t in item_wise_tax_detail.split("\n"):
|
for t in item_wise_tax_detail.split("\n"):
|
||||||
if ":" in t:
|
if " : " in t:
|
||||||
account_head, amount = t.split(":")
|
split_index = t.rfind(" : ")
|
||||||
|
account_head, amount = t[:split_index], t[split_index+3:]
|
||||||
out[account_head.strip()] = flt(amount.strip())
|
out[account_head.strip()] = flt(amount.strip())
|
||||||
|
|
||||||
if out:
|
if out:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user