mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-05 22:48:27 +00:00
Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user