From b0234489ca39659c3d5f6385233da42c8c39bb24 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 23 Jun 2023 15:55:51 +0530 Subject: [PATCH] fix: Remove special treatment for P&L Accounts (#35602) fix: Remove special treatment for P&L Accounts (cherry picked from commit 0bd4de450431b2992b08389570a1526f187f0672) Co-authored-by: Deepesh Garg --- erpnext/accounts/utils.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index 320cf9de68c..99c4fb31b5e 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py @@ -221,11 +221,6 @@ def get_balance_on( if not (frappe.flags.ignore_account_permission or ignore_account_permission): acc.check_permission("read") - if report_type == "Profit and Loss": - # for pl accounts, get balance within a fiscal year - cond.append( - "posting_date >= '%s' and voucher_type != 'Period Closing Voucher'" % year_start_date - ) # different filter for group and ledger - improved performance if acc.is_group: cond.append(