diff --git a/healthcare/healthcare/doctype/service_request/service_request.py b/healthcare/healthcare/doctype/service_request/service_request.py index 25346771b0..12dcd08408 100644 --- a/healthcare/healthcare/doctype/service_request/service_request.py +++ b/healthcare/healthcare/doctype/service_request/service_request.py @@ -87,6 +87,8 @@ def update_invoice_details(self, qty): dt = "Clinical Procedure" elif self.template_dt == "Therapy Type": dt = "Therapy Session" + elif self.template_dt == "Observation Template": + dt = "Observation" dt_name = frappe.db.get_value(dt, {"service_request": self.name}) frappe.db.set_value(dt, dt_name, "invoiced", invoiced)