Merge pull request #22753 from nabinhait/trial-balance-opening-cancelled-entry-fix

fix: Ignore cancelled entries in trial balance opening
This commit is contained in:
Deepesh Garg 2020-07-21 16:42:02 +05:30 committed by GitHub
commit 9e5aa282ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,6 +152,7 @@ def get_rootwise_opening_balances(filters, report_type):
{additional_conditions}
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 is_cancelled = 0
group by account""".format(additional_conditions=additional_conditions), query_filters , as_dict=True)
opening = frappe._dict()