Skip to content

Commit

Permalink
fix: Update dimension_filter_map query
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdeali099 committed Nov 6, 2024
1 parent f4d2ba5 commit 318830c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ def get_dimension_filter_map():
a.applicable_on_account, d.dimension_value, p.accounting_dimension,
p.allow_or_restrict, a.is_mandatory
FROM
`tabApplicable On Account` a, `tabAllowed Dimension` d,
`tabApplicable On Account` a,
`tabAccounting Dimension Filter` p
LEFT JOIN `tabAllowed Dimension` d ON d.parent = p.name
WHERE
p.name = a.parent
AND p.disabled = 0
AND p.name = d.parent
""",
as_dict=1,
)
Expand All @@ -97,7 +97,6 @@ def get_dimension_filter_map():
f.allow_or_restrict,
f.is_mandatory,
)

frappe.flags.dimension_filter_map = dimension_filter_map

return frappe.flags.dimension_filter_map
Expand Down

0 comments on commit 318830c

Please sign in to comment.