mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
fix: Ignore cancelled entries in trial balance opening
This commit is contained in:
@@ -152,6 +152,7 @@ def get_rootwise_opening_balances(filters, report_type):
|
|||||||
{additional_conditions}
|
{additional_conditions}
|
||||||
and (posting_date < %(from_date)s or ifnull(is_opening, 'No') = 'Yes')
|
and (posting_date < %(from_date)s or ifnull(is_opening, 'No') = 'Yes')
|
||||||
and account in (select name from `tabAccount` where report_type=%(report_type)s)
|
and account in (select name from `tabAccount` where report_type=%(report_type)s)
|
||||||
|
and is_cancelled = 0
|
||||||
group by account""".format(additional_conditions=additional_conditions), query_filters , as_dict=True)
|
group by account""".format(additional_conditions=additional_conditions), query_filters , as_dict=True)
|
||||||
|
|
||||||
opening = frappe._dict()
|
opening = frappe._dict()
|
||||||
|
|||||||
Reference in New Issue
Block a user