Skip to content

Commit

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

fix: valuation rate in report Item Prices (#38161)
  • Loading branch information
deepeshgarg007 authored Nov 19, 2023
2 parents 7be7c6a + f71234e commit 13d9652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/stock/report/item_prices/item_prices.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def get_valuation_rate():
bin_data = (
frappe.qb.from_(bin)
.select(
bin.item_code, Sum(bin.actual_qty * bin.valuation_rate) / Sum(bin.actual_qty).as_("val_rate")
bin.item_code, (Sum(bin.actual_qty * bin.valuation_rate) / Sum(bin.actual_qty)).as_("val_rate")
)
.where(bin.actual_qty > 0)
.groupby(bin.item_code)
Expand Down

0 comments on commit 13d9652

Please sign in to comment.