Skip to content

Commit

Permalink
Add patient to Sales Invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
aynugek authored Nov 21, 2024
1 parent 649ce6a commit 946481b
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 946481b

Please sign in to comment.