diff --git a/erpnext/accounts/report/customer_ledger_summary/customer_ledger_summary.js b/erpnext/accounts/report/customer_ledger_summary/customer_ledger_summary.js index c1421a916e3..736dbed53d3 100644 --- a/erpnext/accounts/report/customer_ledger_summary/customer_ledger_summary.js +++ b/erpnext/accounts/report/customer_ledger_summary/customer_ledger_summary.js @@ -115,12 +115,6 @@ frappe.query_reports["Customer Ledger Summary"] = { }); }, }, - { - fieldname: "show_dr_cr", - label: __("Closing Balance in Dr/Cr"), - fieldtype: "Check", - default: 0, - }, ], }; diff --git a/erpnext/accounts/report/customer_ledger_summary/customer_ledger_summary.py b/erpnext/accounts/report/customer_ledger_summary/customer_ledger_summary.py index 0c76efbb962..c45de28aec5 100644 --- a/erpnext/accounts/report/customer_ledger_summary/customer_ledger_summary.py +++ b/erpnext/accounts/report/customer_ledger_summary/customer_ledger_summary.py @@ -243,10 +243,7 @@ class PartyLedgerSummaryReport: } ] - if self.filters.show_dr_cr: - columns.append( - {"label": _("Dr or Cr"), "fieldname": "dr_or_cr", "fieldtype": "Data", "width": 100} - ) + columns.append({"label": _("Dr/Cr"), "fieldname": "dr_or_cr", "fieldtype": "Data", "width": 100}) return columns def get_data(self): @@ -305,13 +302,12 @@ class PartyLedgerSummaryReport: for account in self.party_adjustment_accounts: row["adj_" + scrub(account)] = adjustments.get(account, 0) - if self.filters.show_dr_cr: - if self.filters.party_type == "Customer": - balance = row.get("closing_balance", 0) - row["dr_or_cr"] = "Dr" if balance > 0 else "Cr" if balance < 0 else "" - else: - balance = row.get("closing_balance", 0) - row["dr_or_cr"] = "Cr" if balance > 0 else "Dr" if balance < 0 else "" + if self.filters.party_type == "Customer": + balance = row.get("closing_balance", 0) + row["dr_or_cr"] = "Dr" if balance > 0 else "Cr" if balance < 0 else "" + else: + balance = row.get("closing_balance", 0) + row["dr_or_cr"] = "Cr" if balance > 0 else "Dr" if balance < 0 else "" out.append(row) diff --git a/erpnext/accounts/report/supplier_ledger_summary/supplier_ledger_summary.js b/erpnext/accounts/report/supplier_ledger_summary/supplier_ledger_summary.js index 76cc979de75..df0a204be8a 100644 --- a/erpnext/accounts/report/supplier_ledger_summary/supplier_ledger_summary.js +++ b/erpnext/accounts/report/supplier_ledger_summary/supplier_ledger_summary.js @@ -96,12 +96,6 @@ frappe.query_reports["Supplier Ledger Summary"] = { }); }, }, - { - fieldname: "show_dr_cr", - label: __("Closing Balance in Dr/Cr"), - fieldtype: "Check", - default: 0, - }, ], };