[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)
|
item_wise_tax_detail = json.loads(item_wise_tax_detail)
|
||||||
for item, tax_amount in item_wise_tax_detail.items():
|
for item, tax_amount in item_wise_tax_detail.items():
|
||||||
item_tax.setdefault(parent, {}).setdefault(item, {})[account_head] = \
|
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:
|
except ValueError:
|
||||||
continue
|
continue
|
||||||
|
@ -83,7 +83,7 @@ def get_tax_accounts(item_list, columns):
|
|||||||
item_wise_tax_detail = json.loads(item_wise_tax_detail)
|
item_wise_tax_detail = json.loads(item_wise_tax_detail)
|
||||||
for item, tax_amount in item_wise_tax_detail.items():
|
for item, tax_amount in item_wise_tax_detail.items():
|
||||||
item_tax.setdefault(parent, {}).setdefault(item, {})[account_head] = \
|
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:
|
except ValueError:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user