Skip to content

Commit

Permalink
fix: sql error while filtering on finance book in GL
Browse files Browse the repository at this point in the history
(cherry picked from commit b1d9f31)
  • Loading branch information
ruthra-kumar authored and mergify[bot] committed Dec 5, 2023
1 parent 145ed3a commit 3779943
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/accounts/report/general_ledger/general_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ def get_conditions(filters):

if accounting_dimensions:
for dimension in accounting_dimensions:
if not dimension.disabled:
# Ignore 'Finance Book' set up as dimension in below logic, as it is already handled in above section
if not dimension.disabled and dimension.document_type != "Finance Book":
if filters.get(dimension.fieldname):
if frappe.get_cached_value("DocType", dimension.document_type, "is_tree"):
filters[dimension.fieldname] = get_dimension_with_children(
Expand Down

0 comments on commit 3779943

Please sign in to comment.