Skip to content

Commit

Permalink
fix: valuation rate in report Item Prices (#38161)
Browse files Browse the repository at this point in the history
Co-authored-by: PatrickDenis-stack <77415730+PatrickDenis-stack@users.noreply.github.com>
  • Loading branch information
PatrickDEissler and PatrickDEissler authored Nov 18, 2023
1 parent ca62cde commit 32f622e
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 32f622e

Please sign in to comment.