From f59d673c4b0576c6bdf71f0a179afe10ff1d12db Mon Sep 17 00:00:00 2001 From: Sajin SR Date: Mon, 24 Apr 2023 17:19:31 +0530 Subject: [PATCH] fix: Patient Appointment - reload doc after appointment invoiced --- .../doctype/patient_appointment/patient_appointment.py | 1 + 1 file changed, 1 insertion(+) diff --git a/healthcare/healthcare/doctype/patient_appointment/patient_appointment.py b/healthcare/healthcare/doctype/patient_appointment/patient_appointment.py index 0ffc934296..fc048e2dde 100755 --- a/healthcare/healthcare/doctype/patient_appointment/patient_appointment.py +++ b/healthcare/healthcare/doctype/patient_appointment/patient_appointment.py @@ -353,6 +353,7 @@ def create_sales_invoice(appointment_doc): appointment_doc.name, {"invoiced": 1, "ref_sales_invoice": sales_invoice.name}, ) + appointment_doc.reload() def check_is_new_patient(patient, name=None):