mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 17:15:04 +00:00
Merge pull request #38179 from frappe/mergify/bp/version-14-hotfix/pr-38161
fix: valuation rate in report Item Prices (#38161)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user