feat: Default Dashboard for Healthcare Workspace (#21414)
* feat: Default Dashboard for Healthcare Workspace * fix: patch * Update add_healthcare_dashboard.py * fix: failing patch test Co-authored-by: Nabin Hait <nabinhait@gmail.com> Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
This commit is contained in:
parent
672b74d89c
commit
98229db3ae
@ -47,7 +47,12 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"category": "Domains",
|
"category": "Domains",
|
||||||
"charts": [],
|
"charts": [
|
||||||
|
{
|
||||||
|
"chart_name": "Patient Appointments",
|
||||||
|
"label": "Patient Appointments"
|
||||||
|
}
|
||||||
|
],
|
||||||
"charts_label": "",
|
"charts_label": "",
|
||||||
"creation": "2020-03-02 17:23:17.919682",
|
"creation": "2020-03-02 17:23:17.919682",
|
||||||
"developer_mode_only": 0,
|
"developer_mode_only": 0,
|
||||||
@ -58,7 +63,7 @@
|
|||||||
"idx": 0,
|
"idx": 0,
|
||||||
"is_standard": 1,
|
"is_standard": 1,
|
||||||
"label": "Healthcare",
|
"label": "Healthcare",
|
||||||
"modified": "2020-04-20 11:42:43.889576",
|
"modified": "2020-04-25 22:31:36.576444",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Healthcare",
|
"module": "Healthcare",
|
||||||
"name": "Healthcare",
|
"name": "Healthcare",
|
||||||
|
|||||||
@ -630,7 +630,7 @@ execute:frappe.reload_doc('desk', 'doctype', 'dashboard')
|
|||||||
execute:frappe.reload_doc('desk', 'doctype', 'dashboard_chart_source')
|
execute:frappe.reload_doc('desk', 'doctype', 'dashboard_chart_source')
|
||||||
execute:frappe.reload_doc('desk', 'doctype', 'dashboard_chart')
|
execute:frappe.reload_doc('desk', 'doctype', 'dashboard_chart')
|
||||||
execute:frappe.reload_doc('desk', 'doctype', 'dashboard_chart_field')
|
execute:frappe.reload_doc('desk', 'doctype', 'dashboard_chart_field')
|
||||||
erpnext.patches.v12_0.add_default_dashboards
|
erpnext.patches.v12_0.add_default_dashboards # 2020-04-05
|
||||||
erpnext.patches.v12_0.remove_bank_remittance_custom_fields
|
erpnext.patches.v12_0.remove_bank_remittance_custom_fields
|
||||||
erpnext.patches.v12_0.generate_leave_ledger_entries
|
erpnext.patches.v12_0.generate_leave_ledger_entries
|
||||||
execute:frappe.delete_doc_if_exists("Report", "Loan Repayment")
|
execute:frappe.delete_doc_if_exists("Report", "Loan Repayment")
|
||||||
|
|||||||
@ -6,4 +6,5 @@ from erpnext.setup.setup_wizard.operations.install_fixtures import add_dashboard
|
|||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
frappe.reload_doc("desk", "doctype", "number_card_link")
|
frappe.reload_doc("desk", "doctype", "number_card_link")
|
||||||
|
frappe.reload_doc("desk", "doctype", "patient_appointment")
|
||||||
add_dashboards()
|
add_dashboards()
|
||||||
|
|||||||
@ -29,7 +29,8 @@ def get_default_dashboards():
|
|||||||
{ "chart": "Incoming Bills (Purchase Invoice)" },
|
{ "chart": "Incoming Bills (Purchase Invoice)" },
|
||||||
{ "chart": "Bank Balance" },
|
{ "chart": "Bank Balance" },
|
||||||
{ "chart": "Income" },
|
{ "chart": "Income" },
|
||||||
{ "chart": "Expenses" }
|
{ "chart": "Expenses" },
|
||||||
|
{ "chart": "Patient Appointments" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -107,6 +108,21 @@ def get_default_dashboards():
|
|||||||
"document_type": "Sales Invoice",
|
"document_type": "Sales Invoice",
|
||||||
"type": "Bar",
|
"type": "Bar",
|
||||||
"width": "Half"
|
"width": "Half"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"doctype": "Dashboard Chart",
|
||||||
|
"time_interval": "Daily",
|
||||||
|
"chart_name": "Patient Appointments",
|
||||||
|
"timespan": "Last Month",
|
||||||
|
"color": "#77ecca",
|
||||||
|
"filters_json": json.dumps({}),
|
||||||
|
"chart_type": "Count",
|
||||||
|
"timeseries": 1,
|
||||||
|
"based_on": "appointment_datetime",
|
||||||
|
"owner": "Administrator",
|
||||||
|
"document_type": "Patient Appointment",
|
||||||
|
"type": "Line",
|
||||||
|
"width": "Half"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user