* We check both here. But will deprecate the latter in time.
*/
public static function isInvoicingEnabled() {
- if (Civi::settings()->get('invoicing')) {
- return TRUE;
- }
- $invoiceSettings = Civi::settings()->get('contribution_invoice_settings');
- return $invoiceSettings['invoicing'] ?? NULL;
+ return Civi::settings()->get('invoicing');
}
/**