Skip to content

Commit

Permalink
fix(Observation): local variable reference error in Diagnostic Report
Browse files Browse the repository at this point in the history
(cherry picked from commit 1268a29)
  • Loading branch information
Sajinsr committed Jun 11, 2024
1 parent 94ba841 commit 6a5d4f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions healthcare/healthcare/doctype/observation/observation.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def get_observation_details(docname):
reference = frappe.get_value(
"Diagnostic Report", docname, ["docname", "ref_doctype"], as_dict=True
)
observation = []

if reference.get("ref_doctype") == "Sales Invoice":
observation = frappe.get_list(
Expand Down

0 comments on commit 6a5d4f7

Please # to comment.