[fix] [minor] itemwise sales/purchase register
This commit is contained in:
parent
75a4206a24
commit
4144b1c841
@ -86,7 +86,7 @@ def get_tax_accounts(item_list, columns):
|
||||
item_wise_tax_detail = json.loads(item_wise_tax_detail)
|
||||
for item, tax_amount in item_wise_tax_detail.items():
|
||||
item_tax.setdefault(parent, {}).setdefault(item, {})[account_head] = \
|
||||
flt(tax_amount[1])
|
||||
flt(tax_amount[1]) if isinstance(tax_amount, list) else flt(tax_amount)
|
||||
|
||||
except ValueError:
|
||||
continue
|
||||
|
@ -83,7 +83,7 @@ def get_tax_accounts(item_list, columns):
|
||||
item_wise_tax_detail = json.loads(item_wise_tax_detail)
|
||||
for item, tax_amount in item_wise_tax_detail.items():
|
||||
item_tax.setdefault(parent, {}).setdefault(item, {})[account_head] = \
|
||||
flt(tax_amount[1])
|
||||
flt(tax_amount[1]) if isinstance(tax_amount, list) else flt(tax_amount)
|
||||
except ValueError:
|
||||
continue
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user