Skip to content

Commit

Permalink
fix: add field conversion_factor when include_uom is settled (#43701)
Browse files Browse the repository at this point in the history
(cherry picked from commit cfe6af1)
  • Loading branch information
HarryPaulo authored and mergify[bot] committed Nov 11, 2024
1 parent 363f151 commit f387a8f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ def get_item_map(item_code, include_uom):

if include_uom:
ucd = frappe.qb.DocType("UOM Conversion Detail")
query = query.select(ucd.conversion_factor)
query = query.left_join(ucd).on((ucd.parent == item.name) & (ucd.uom == include_uom))

items = query.run(as_dict=True)
Expand Down

0 comments on commit f387a8f

Please sign in to comment.