mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
Update purchase_register.py
This commit is contained in:
@@ -58,7 +58,7 @@ def execute(filters=None):
|
|||||||
row.append(invoice_tax_map.get(inv.name, {}).get(tax_acc))
|
row.append(invoice_tax_map.get(inv.name, {}).get(tax_acc))
|
||||||
|
|
||||||
# total tax, grand total, outstanding amount & rounded total
|
# total tax, grand total, outstanding amount & rounded total
|
||||||
row += [inv.other_charges_total, inv.grand_total, flt(inv.grand_total, 2), \
|
row += [inv.total_tax, inv.grand_total, flt(inv.grand_total, 2), \
|
||||||
inv.outstanding_amount]
|
inv.outstanding_amount]
|
||||||
data.append(row)
|
data.append(row)
|
||||||
|
|
||||||
@@ -164,4 +164,4 @@ def get_account_details(invoice_list):
|
|||||||
where name in (%s)""" % ", ".join(["%s"]*len(accounts)), tuple(accounts), as_dict=1):
|
where name in (%s)""" % ", ".join(["%s"]*len(accounts)), tuple(accounts), as_dict=1):
|
||||||
account_map[acc.name] = acc.parent_account
|
account_map[acc.name] = acc.parent_account
|
||||||
|
|
||||||
return account_map
|
return account_map
|
||||||
|
|||||||
Reference in New Issue
Block a user