From d73daafe77e4381744f55a80fdb0c1ce0641a5a2 Mon Sep 17 00:00:00 2001 From: Gursheen Anand Date: Thu, 31 Aug 2023 15:19:46 +0530 Subject: [PATCH] fix: tax accounts in sales register --- erpnext/accounts/report/purchase_register/purchase_register.py | 1 + erpnext/accounts/report/sales_register/sales_register.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/report/purchase_register/purchase_register.py b/erpnext/accounts/report/purchase_register/purchase_register.py index ca8b9f0842..162e5b57c7 100644 --- a/erpnext/accounts/report/purchase_register/purchase_register.py +++ b/erpnext/accounts/report/purchase_register/purchase_register.py @@ -393,6 +393,7 @@ def get_invoices(filters, additional_query_columns): pi.remarks, pi.base_net_total, pi.base_grand_total, + pi.base_rounded_total, pi.outstanding_amount, pi.mode_of_payment, ) diff --git a/erpnext/accounts/report/sales_register/sales_register.py b/erpnext/accounts/report/sales_register/sales_register.py index d3fc373825..0ba7186fa6 100644 --- a/erpnext/accounts/report/sales_register/sales_register.py +++ b/erpnext/accounts/report/sales_register/sales_register.py @@ -38,7 +38,7 @@ def _execute(filters, additional_table_columns=None): if filters.get("include_payments"): invoice_list += get_payments(filters) - columns, income_accounts, tax_accounts, unrealized_profit_loss_accounts = get_columns( + columns, income_accounts, unrealized_profit_loss_accounts, tax_accounts = get_columns( invoice_list, additional_table_columns, include_payments )