Skip to content

Commit

Permalink
fix(Sample Collection): set sales invoice reference conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
Sajinsr committed Dec 20, 2024
1 parent ec52762 commit 1bcd745
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ def insert_observation(selected, sample_collection, component_observations=None,
specimen=comp_obs_ref.get(obs.get("name"))
or comp_obs_ref.get(i + 1)
or comp_obs_ref.get(obs.get("idx")),
invoice=sample_col_doc.get("reference_name"),
invoice=sample_col_doc.get("reference_name")
if sample_col_doc.reference_doc == "Sales Invoice"
else None,
practitioner=sample_col_doc.get("referring_practitioner"),
child=obs.get("reference_child") if obs.get("reference_child") else "",
service_request=obs.get("service_request"),
Expand Down

0 comments on commit 1bcd745

Please sign in to comment.