Skip to content

Commit

Permalink
fix: typo in sql condition
Browse files Browse the repository at this point in the history
  • Loading branch information
sunhoww authored Jun 9, 2022
1 parent b9dbb36 commit ee2949a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/accounts/report/trial_balance/trial_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ def get_rootwise_opening_balances(filters, report_type):

if filters.get("include_default_book_entries"):
additional_conditions += (
"AND (finance_book in (%(finance_book)s, %(company_fb)s, '') OR finance_book IS NULL)"
" AND (finance_book in (%(finance_book)s, %(company_fb)s, '') OR finance_book IS NULL)"
)
else:
additional_conditions += "AND (finance_book in (%(finance_book)s, '') OR finance_book IS NULL)"
additional_conditions += " AND (finance_book in (%(finance_book)s, '') OR finance_book IS NULL)"

accounting_dimensions = get_accounting_dimensions(as_list=False)

Expand Down

0 comments on commit ee2949a

Please sign in to comment.