Changed old custom fields names.
This commit is contained in:
parent
d6f7800f20
commit
a034b15c62
1 changed files with 39 additions and 39 deletions
|
|
@ -28,30 +28,30 @@ def get_client_status_counts(weekly=False, week_start_date=None, week_end_date=N
|
||||||
|
|
||||||
onsite_meeting_scheduled_status_counts = {
|
onsite_meeting_scheduled_status_counts = {
|
||||||
"label": "On-Site Meeting Scheduled",
|
"label": "On-Site Meeting Scheduled",
|
||||||
"not_started": frappe.db.count("Address", filters=get_filters("custom_onsite_meeting_scheduled", "Not Started")),
|
"not_started": frappe.db.count("Address", filters=get_filters("onsite_meeting_scheduled", "Not Started")),
|
||||||
"in_progress": frappe.db.count("Address", filters=get_filters("custom_onsite_meeting_scheduled", "In Progress")),
|
"in_progress": frappe.db.count("Address", filters=get_filters("onsite_meeting_scheduled", "In Progress")),
|
||||||
"completed": frappe.db.count("Address", filters=get_filters("custom_onsite_meeting_scheduled", "Completed"))
|
"completed": frappe.db.count("Address", filters=get_filters("onsite_meeting_scheduled", "Completed"))
|
||||||
}
|
}
|
||||||
|
|
||||||
estimate_sent_status_counts = {
|
estimate_sent_status_counts = {
|
||||||
"label": "Estimate Sent",
|
"label": "Estimate Sent",
|
||||||
"not_started": frappe.db.count("Address", filters=get_filters("custom_estimate_sent_status", "Not Started")),
|
"not_started": frappe.db.count("Address", filters=get_filters("estimate_sent_status", "Not Started")),
|
||||||
"in_progress": frappe.db.count("Address", filters=get_filters("custom_estimate_sent_status", "In Progress")),
|
"in_progress": frappe.db.count("Address", filters=get_filters("estimate_sent_status", "In Progress")),
|
||||||
"completed": frappe.db.count("Address", filters=get_filters("custom_estimate_sent_status", "Completed"))
|
"completed": frappe.db.count("Address", filters=get_filters("estimate_sent_status", "Completed"))
|
||||||
}
|
}
|
||||||
|
|
||||||
job_status_counts = {
|
job_status_counts = {
|
||||||
"label": "Job Status",
|
"label": "Job Status",
|
||||||
"not_started": frappe.db.count("Address", filters=get_filters("custom_job_status", "Not Started")),
|
"not_started": frappe.db.count("Address", filters=get_filters("job_status", "Not Started")),
|
||||||
"in_progress": frappe.db.count("Address", filters=get_filters("custom_job_status", "In Progress")),
|
"in_progress": frappe.db.count("Address", filters=get_filters("job_status", "In Progress")),
|
||||||
"completed": frappe.db.count("Address", filters=get_filters("custom_job_status", "Completed"))
|
"completed": frappe.db.count("Address", filters=get_filters("job_status", "Completed"))
|
||||||
}
|
}
|
||||||
|
|
||||||
payment_received_status_counts = {
|
payment_received_status_counts = {
|
||||||
"label": "Payment Received",
|
"label": "Payment Received",
|
||||||
"not_started": frappe.db.count("Address", filters=get_filters("custom_payment_received_status", "Not Started")),
|
"not_started": frappe.db.count("Address", filters=get_filters("payment_received_status", "Not Started")),
|
||||||
"in_progress": frappe.db.count("Address", filters=get_filters("custom_payment_received_status", "In Progress")),
|
"in_progress": frappe.db.count("Address", filters=get_filters("payment_received_status", "In Progress")),
|
||||||
"completed": frappe.db.count("Address", filters=get_filters("custom_payment_received_status", "Completed"))
|
"completed": frappe.db.count("Address", filters=get_filters("payment_received_status", "Completed"))
|
||||||
}
|
}
|
||||||
|
|
||||||
status_dicts = [
|
status_dicts = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue