Itemwise purchase and Itemwise sales

This commit is contained in:
Neil Trini Lasrado
2016-04-29 18:21:51 +05:30
parent efbcd7c788
commit c33b5b74c6
2 changed files with 7 additions and 7 deletions

View File

@@ -126,8 +126,8 @@ def get_tax_accounts(item_list, columns):
for d in item_row_map.get(parent, {}).get(item_code, [])]) for d in item_row_map.get(parent, {}).get(item_code, [])])
for d in item_row_map.get(parent, {}).get(item_code, []): for d in item_row_map.get(parent, {}).get(item_code, []):
item_row_tax.setdefault(d.name, {})[account_head] = \ item_tax_amount = flt((tax_amount * d.base_net_amount) / item_net_amount) if item_net_amount else 0
flt((tax_amount * d.base_net_amount) / item_net_amount) item_row_tax.setdefault(d.name, {})[account_head] = item_tax_amount
except ValueError: except ValueError:
continue continue

View File

@@ -121,8 +121,8 @@ def get_tax_accounts(item_list, columns):
for d in item_row_map.get(parent, {}).get(item_code, [])]) for d in item_row_map.get(parent, {}).get(item_code, [])])
for d in item_row_map.get(parent, {}).get(item_code, []): for d in item_row_map.get(parent, {}).get(item_code, []):
item_row_tax.setdefault(d.name, {})[account_head] = \ item_tax_amount = flt((tax_amount * d.base_net_amount) / item_net_amount) if item_net_amount else 0
flt((tax_amount * d.base_net_amount) / item_net_amount) item_row_tax.setdefault(d.name, {})[account_head] = item_tax_amount
except ValueError: except ValueError:
continue continue