fix: company name with , in Job Card Summary Report
(cherry picked from commit 481149814e)
# Conflicts:
# erpnext/manufacturing/report/job_card_summary/job_card_summary.py
This commit is contained in:
@@ -36,10 +36,18 @@ def get_data(filters):
|
|||||||
"total_time_in_mins",
|
"total_time_in_mins",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
for field in ["work_order", "workstation", "operation", "company"]:
|
for field in ["work_order", "workstation", "operation", "company"]:
|
||||||
|
=======
|
||||||
|
for field in ["work_order"]:
|
||||||
|
>>>>>>> 481149814e (fix: company name with `,` in `Job Card Summary Report`)
|
||||||
if filters.get(field):
|
if filters.get(field):
|
||||||
query_filters[field] = ("in", filters.get(field))
|
query_filters[field] = ("in", filters.get(field))
|
||||||
|
|
||||||
|
for field in ["workstation", "operation", "status", "company"]:
|
||||||
|
if filters.get(field):
|
||||||
|
query_filters[field] = filters.get(field)
|
||||||
|
|
||||||
data = frappe.get_all("Job Card", fields=fields, filters=query_filters)
|
data = frappe.get_all("Job Card", fields=fields, filters=query_filters)
|
||||||
|
|
||||||
if not data:
|
if not data:
|
||||||
|
|||||||
Reference in New Issue
Block a user