Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.5.0-b1
-
Component/s: None
-
Labels:None
Description
The Invoices model, "getAutodebitDate" method runs a query to retrieve whether or not the client can be autodebited for the invoice, however, it requires that there exist the `client_settings`.`key` of "autodebit". Since the "autodebit" client setting is inherited, it may not be set, and should instead be observed from the client group/company setting from which it inherits.
- Update Invoices::getAutodebitDate to ensure that the check on the "autodebit" client setting also inherits from the client group/company settings as necessary
- This will probably require a separate query to fetch the value of the client's autodebit setting
- Also check Invoices::getInvoices when fetching invoices "to_autodebit" or "pending_autodebit" since they also explicitly check the client setting
Issue Links
- is duplicated by
-
CORE-2981 Invoice Delivery (Unpaid) missing tag for autodebit_date_formatted
- Closed