mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
feat: support for serial item
This commit is contained in:
@@ -989,9 +989,10 @@ def get_batch_nos(serial_and_batch_bundle):
|
||||
|
||||
entries = frappe.get_all(
|
||||
"Serial and Batch Entry",
|
||||
fields=["batch_no", "qty", "name"],
|
||||
fields=["batch_no", {"SUM": "qty", "as": "qty"}],
|
||||
filters={"parent": serial_and_batch_bundle, "batch_no": ("is", "set")},
|
||||
order_by="idx",
|
||||
group_by="batch_no",
|
||||
)
|
||||
|
||||
if not entries:
|
||||
|
||||
Reference in New Issue
Block a user