fix: Ignore cancelled entries in trial balance opening
This commit is contained in:
parent
d81372a39c
commit
493b581862
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user