mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 08:35:00 +00:00
fix: exclude Cancelled appointments while Get Items in Sales Invoice
This commit is contained in:
@@ -40,7 +40,7 @@ def get_appointments_to_invoice(patient, company):
|
||||
patient_appointments = frappe.get_list(
|
||||
'Patient Appointment',
|
||||
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'
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user