Details
Description
The auto debit process ensure that auto debit is enabled for a client before processing a payment. The problem is that it looks exclusively for the 'autodebit' setting on the client's account, instead it only exclude if autodebit is explicitly disabled.
In other words, if 'autodebit' is set and is 'false' then do not return the record, else return the record.
See Invoices::getAllAutodebitableInvoices().