Skip to content

Commit

Permalink
fix: Remove special treatment for P&L Accounts (#35602)
Browse files Browse the repository at this point in the history
fix: Remove special treatment for P&L Accounts

(cherry picked from commit 0bd4de4)

Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
  • Loading branch information
mergify[bot] and deepeshgarg007 authored Jun 23, 2023
1 parent 21336f1 commit b023448
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions erpnext/accounts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b023448

Please sign in to comment.