Skip to content

Commit

Permalink
Merge pull request #44092 from frappe/mergify/bp/version-15-hotfix/pr…
Browse files Browse the repository at this point in the history
…-43701

fix: add field conversion_factor when include_uom is settled (backport #43701)
  • Loading branch information
ruthra-kumar authored Nov 11, 2024
2 parents b314f38 + f387a8f commit 34f64f0
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 34f64f0

Please sign in to comment.