mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-24 07:06:30 +00:00
fix: revert to old orm
This commit is contained in:
@@ -5,7 +5,7 @@ def execute():
|
|||||||
data = frappe.get_all(
|
data = frappe.get_all(
|
||||||
"Sales Order Item",
|
"Sales Order Item",
|
||||||
filters={"quotation_item": ["is", "set"], "docstatus": 1},
|
filters={"quotation_item": ["is", "set"], "docstatus": 1},
|
||||||
fields=["quotation_item", {"SUM": "stock_qty", "as": "ordered_qty"}],
|
fields=["quotation_item", "sum(stock_qty) as ordered_qty"],
|
||||||
group_by="quotation_item",
|
group_by="quotation_item",
|
||||||
)
|
)
|
||||||
if data:
|
if data:
|
||||||
|
|||||||
Reference in New Issue
Block a user