mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
fix: create job card button
This commit is contained in:
@@ -166,9 +166,10 @@ class WorkOrder(Document):
|
|||||||
operation_details = frappe._dict(
|
operation_details = frappe._dict(
|
||||||
frappe.get_all(
|
frappe.get_all(
|
||||||
"Job Card",
|
"Job Card",
|
||||||
fields=["operation", "for_quantity"],
|
fields=["operation", "sum(for_quantity)"],
|
||||||
filters={"docstatus": ("<", 2), "work_order": self.name},
|
filters={"docstatus": ("<", 2), "work_order": self.name},
|
||||||
as_list=1,
|
as_list=1,
|
||||||
|
group_by="operation_id",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user