Merge pull request #22836 from akurungadam/fix-dev-1
fix: Sales Invoice Get Healthcare Services - exclude Cancelled appointments
This commit is contained in:
commit
4bbcf3ed93
@ -40,7 +40,7 @@ def get_appointments_to_invoice(patient, company):
|
|||||||
patient_appointments = frappe.get_list(
|
patient_appointments = frappe.get_list(
|
||||||
'Patient Appointment',
|
'Patient Appointment',
|
||||||
fields = '*',
|
fields = '*',
|
||||||
filters = {'patient': patient.name, 'company': company, 'invoiced': 0},
|
filters = {'patient': patient.name, 'company': company, 'invoiced': 0, 'status': ['not in', 'Cancelled']},
|
||||||
order_by = 'appointment_date'
|
order_by = 'appointment_date'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user