mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 11:09:17 +00:00
fix: adapt to query builder
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
@@ -1511,7 +1511,7 @@ def get_batchwise_qty(voucher_type, voucher_no):
|
||||
batches = frappe.get_all(
|
||||
"Serial and Batch Entry",
|
||||
filters={"parent": ("in", bundles), "batch_no": ("is", "set")},
|
||||
fields=["batch_no", "SUM(qty) as qty"],
|
||||
fields=["batch_no", {"SUM": "qty", "as": "qty"}],
|
||||
group_by="batch_no",
|
||||
as_list=1,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user