refactor: desk page colors and filters

This commit is contained in:
Rucha Mahabal 2020-05-18 12:55:05 +05:30
parent 1e7bc3a97e
commit 1ac2512c73
2 changed files with 6 additions and 4 deletions

View File

@ -28,7 +28,6 @@ def get_charts():
"name": "Patient Appointments", "name": "Patient Appointments",
"chart_name": "Patient Appointments", "chart_name": "Patient Appointments",
"timespan": "Last Month", "timespan": "Last Month",
"color": "#77ecca",
"filters_json": json.dumps({}), "filters_json": json.dumps({}),
"chart_type": "Count", "chart_type": "Count",
"timeseries": 1, "timeseries": 1,

View File

@ -63,7 +63,7 @@
"idx": 0, "idx": 0,
"is_standard": 1, "is_standard": 1,
"label": "Healthcare", "label": "Healthcare",
"modified": "2020-04-25 22:31:36.576444", "modified": "2020-05-18 12:41:04.288871",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Healthcare", "module": "Healthcare",
"name": "Healthcare", "name": "Healthcare",
@ -73,13 +73,15 @@
"restrict_to_domain": "Healthcare", "restrict_to_domain": "Healthcare",
"shortcuts": [ "shortcuts": [
{ {
"color": "#ffe8cd",
"format": "{} Open", "format": "{} Open",
"label": "Patient Appointment", "label": "Patient Appointment",
"link_to": "Patient Appointment", "link_to": "Patient Appointment",
"stats_filter": "{\n \"status\": \"Open\"\n}", "stats_filter": "{\n \"status\": \"Open\",\n \"company\": [\"like\", '%' + frappe.defaults.get_global_default(\"company\") + '%']\n}",
"type": "DocType" "type": "DocType"
}, },
{ {
"color": "#ffe8cd",
"format": "{} Active", "format": "{} Active",
"label": "Patient", "label": "Patient",
"link_to": "Patient", "link_to": "Patient",
@ -87,10 +89,11 @@
"type": "DocType" "type": "DocType"
}, },
{ {
"color": "#cef6d1",
"format": "{} Vacant", "format": "{} Vacant",
"label": "Healthcare Service Unit", "label": "Healthcare Service Unit",
"link_to": "Healthcare Service Unit", "link_to": "Healthcare Service Unit",
"stats_filter": "{\n \"occupancy_status\": \"Vacant\",\n \"is_group\": 0\n}", "stats_filter": "{\n \"occupancy_status\": \"Vacant\",\n \"is_group\": 0,\n \"company\": [\"like\", \"%\" + frappe.defaults.get_global_default(\"company\") + \"%\"]\n}",
"type": "DocType" "type": "DocType"
}, },
{ {