fix: Remove special treatment for P&L Accounts (#35602)
fix: Remove special treatment for P&L Accounts
(cherry picked from commit 0bd4de4504)
Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
This commit is contained in:
@@ -221,11 +221,6 @@ def get_balance_on(
|
|||||||
if not (frappe.flags.ignore_account_permission or ignore_account_permission):
|
if not (frappe.flags.ignore_account_permission or ignore_account_permission):
|
||||||
acc.check_permission("read")
|
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
|
# different filter for group and ledger - improved performance
|
||||||
if acc.is_group:
|
if acc.is_group:
|
||||||
cond.append(
|
cond.append(
|
||||||
|
|||||||
Reference in New Issue
Block a user