Merge pull request #22625 from ruchamahabal/fix-encounter-deletion

fix: attribute error while cancelling patient encounter
This commit is contained in:
Rucha Mahabal 2020-07-09 11:25:45 +05:30 committed by GitHub
commit 3265274854
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ def update_encounter_medical_record(encounter):
insert_encounter_to_medical_record(encounter)
def delete_medical_record(encounter):
frappe.db.delete_doc_if_exists('Patient Medical Record', 'reference_name', encounter.name)
frappe.delete_doc_if_exists('Patient Medical Record', 'reference_name', encounter.name)
def set_subject_field(encounter):
subject = frappe.bold(_('Healthcare Practitioner: ')) + encounter.practitioner + '<br>'