Skip to content

Commit

Permalink
fix: broken dimension filters in Sales/Purchase register
Browse files Browse the repository at this point in the history
(cherry picked from commit 7b3f938)
  • Loading branch information
ruthra-kumar authored and mergify[bot] committed Jan 11, 2024
1 parent 531f15b commit 298cdf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/report/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def filter_invoices_based_on_dimensions(filters, query, parent_doc):
dimension.document_type, filters.get(dimension.fieldname)
)
fieldname = dimension.fieldname
query = query.where(parent_doc[fieldname] == filters.fieldname)
query = query.where(parent_doc[fieldname].isin(filters[fieldname]))
return query


Expand Down

0 comments on commit 298cdf5

Please sign in to comment.