chore: Update test case

This commit is contained in:
Deepesh Garg
2022-05-25 23:52:40 +05:30
parent 14422eaf59
commit 3d51d125bf
3 changed files with 6 additions and 2 deletions

View File

@@ -255,7 +255,8 @@ def create_sales_invoice(appointment_doc):
sales_invoice.customer = frappe.get_value("Patient", appointment_doc.patient, "customer")
sales_invoice.currency = frappe.get_value(
"Customer", sales_invoice.customer, "default_currency"
) or get_company_currency(appointment_doc.currency)
) or get_company_currency(appointment_doc.company)
sales_invoice.appointment = appointment_doc.name
sales_invoice.due_date = getdate()
sales_invoice.company = appointment_doc.company

View File

@@ -379,6 +379,7 @@ def create_patient(
patient.mobile = mobile
patient.email = email
patient.customer = customer
patient.default_currency = "INR"
patient.invite_user = create_user
patient.save(ignore_permissions=True)