Skip to content

Commit

Permalink
fix: Invoice submission error if SR has Observation Template in Order…
Browse files Browse the repository at this point in the history
… Template Type field
  • Loading branch information
Irfan778899 authored and akashkrishna619 committed Dec 6, 2023
1 parent 650efe3 commit d7dc2e1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ def update_invoice_details(self, qty):
dt = "Clinical Procedure"
elif self.template_dt == "Therapy Type":
dt = "Therapy Session"
elif self.template_dt == "Observation Template":
dt = "Observation"
dt_name = frappe.db.get_value(dt, {"service_request": self.name})
frappe.db.set_value(dt, dt_name, "invoiced", invoiced)

Expand Down

0 comments on commit d7dc2e1

Please sign in to comment.