Merge pull request #35602 from deepeshgarg007/pl_account_balance

fix: Remove special treatment for P&L Accounts
This commit is contained in:
Deepesh Garg 2023-06-22 21:11:23 +05:30 committed by GitHub
commit 904f835d4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -237,11 +237,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(