mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-22 16:18:30 +00:00
fix: use qty instead of stock qty dropship gross profit report (#54389)
This commit is contained in:
@@ -790,7 +790,7 @@ class GrossProfitGenerator:
|
||||
table = frappe.qb.DocType("Purchase Invoice Item")
|
||||
query = (
|
||||
frappe.qb.from_(table)
|
||||
.select(Sum(table.stock_qty * table.base_net_rate))
|
||||
.select(Sum(table.qty * table.base_net_rate))
|
||||
.where((table.po_detail.isin(po_details)) & (table.docstatus == 1))
|
||||
)
|
||||
return flt(query.run()[0][0])
|
||||
|
||||
Reference in New Issue
Block a user