Merge pull request #21814 from deepeshgarg007/trial_balance_project_filter

fix: Project filter in Trial Balance Report
This commit is contained in:
Deepesh Garg 2020-05-20 22:28:19 +05:30 committed by GitHub
commit 0a7002e000
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,8 @@ def get_data(filters):
opening_balances = get_opening_balances(filters)
#add filter inside list so that the query in financial_statements.py doesn't break
filters.project = [filters.project]
if filters.project:
filters.project = [filters.project]
set_gl_entries_by_account(filters.company, filters.from_date,
filters.to_date, min_lft, max_rgt, filters, gl_entries_by_account, ignore_closing_entries=not flt(filters.with_period_closing_entry))