test: fix property name

This commit is contained in:
Deepesh Garg 2021-08-22 18:05:24 +05:30
parent 60915e874d
commit c10a22529c

View File

@ -166,7 +166,7 @@ def create_sales_invoice(appointment_doc):
sales_invoice.patient = appointment_doc.patient sales_invoice.patient = appointment_doc.patient
sales_invoice.customer = frappe.get_value('Patient', appointment_doc.patient, 'customer') sales_invoice.customer = frappe.get_value('Patient', appointment_doc.patient, 'customer')
sales_invoice.currency = frappe.get_value('Customer', sales_invoice.customer, 'default_currency') \ 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.appointment = appointment_doc.name
sales_invoice.due_date = getdate() sales_invoice.due_date = getdate()
sales_invoice.company = appointment_doc.company sales_invoice.company = appointment_doc.company