From 28f9ecd66df92fff955109a9bd9c2367b81474f9 Mon Sep 17 00:00:00 2001 From: viralkansodiya Date: Thu, 2 Jan 2025 08:50:09 +0000 Subject: [PATCH] fix: medical department field in healthcare practitioner should have a Mandatory enabled --- .../healthcare_practitioner/healthcare_practitioner.json | 3 ++- healthcare/healthcare/doctype/lab_test/test_lab_test.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/healthcare/healthcare/doctype/healthcare_practitioner/healthcare_practitioner.json b/healthcare/healthcare/doctype/healthcare_practitioner/healthcare_practitioner.json index 1a19129236..5fe975c0f7 100644 --- a/healthcare/healthcare/doctype/healthcare_practitioner/healthcare_practitioner.json +++ b/healthcare/healthcare/doctype/healthcare_practitioner/healthcare_practitioner.json @@ -113,7 +113,8 @@ "ignore_user_permissions": 1, "in_standard_filter": 1, "label": "Medical Department", - "options": "Medical Department" + "options": "Medical Department", + "reqd" : 1 }, { "fieldname": "column_break_7", diff --git a/healthcare/healthcare/doctype/lab_test/test_lab_test.py b/healthcare/healthcare/doctype/lab_test/test_lab_test.py index 58b407049f..c274c8e5c8 100644 --- a/healthcare/healthcare/doctype/lab_test/test_lab_test.py +++ b/healthcare/healthcare/doctype/lab_test/test_lab_test.py @@ -229,6 +229,7 @@ def create_practitioner(): practitioner = frappe.new_doc("Healthcare Practitioner") practitioner.first_name = "_Test Healthcare Practitioner" practitioner.gender = "Female" + practitioner.department = "Dermatology" practitioner.op_consulting_charge = 500 practitioner.inpatient_visit_charge = 500 practitioner.save(ignore_permissions=True)