committed by
Ankush Menat
parent
e357541509
commit
408c4a6f54
@@ -45,7 +45,7 @@ def get_data(filters):
|
|||||||
job_card_time_details = {}
|
job_card_time_details = {}
|
||||||
for job_card_data in frappe.get_all("Job Card Time Log",
|
for job_card_data in frappe.get_all("Job Card Time Log",
|
||||||
fields=["min(from_time) as from_time", "max(to_time) as to_time", "parent"],
|
fields=["min(from_time) as from_time", "max(to_time) as to_time", "parent"],
|
||||||
filters=job_card_time_filter, group_by="parent", debug=1):
|
filters=job_card_time_filter, group_by="parent"):
|
||||||
job_card_time_details[job_card_data.parent] = job_card_data
|
job_card_time_details[job_card_data.parent] = job_card_data
|
||||||
|
|
||||||
res = []
|
res = []
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ def run_query(query_args: QueryArgs) -> Data:
|
|||||||
{work_order_filter}
|
{work_order_filter}
|
||||||
GROUP BY
|
GROUP BY
|
||||||
se.work_order
|
se.work_order
|
||||||
""".format(**query_args), query_args, as_dict=1, debug=1)
|
""".format(**query_args), query_args, as_dict=1)
|
||||||
|
|
||||||
def update_data_with_total_pl_value(data: Data) -> None:
|
def update_data_with_total_pl_value(data: Data) -> None:
|
||||||
for row in data:
|
for row in data:
|
||||||
|
|||||||
Reference in New Issue
Block a user