Skip to content

Commit

Permalink
fix(sales invoice): add patient to registration fee sales invoice
Browse files Browse the repository at this point in the history
(cherry picked from commit aa4a117)
  • Loading branch information
aynugek authored and Sajinsr committed Dec 17, 2024
1 parent ee9a44d commit 58a23f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions healthcare/healthcare/doctype/patient/patient.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ def make_invoice(patient, company):
uom = frappe.db.exists("UOM", "Nos") or frappe.db.get_single_value("Stock Settings", "stock_uom")
sales_invoice = frappe.new_doc("Sales Invoice")
sales_invoice.customer = frappe.db.get_value("Patient", patient, "customer")
sales_invoice.patient = patient
sales_invoice.due_date = getdate()
sales_invoice.company = company
sales_invoice.is_pos = 0
Expand Down

0 comments on commit 58a23f4

Please sign in to comment.