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
  • Loading branch information
Sajinsr committed Jun 10, 2024
1 parent 3242d3e commit 1268a29
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 @@ -108,6 +108,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 1268a29

Please sign in to comment.