* 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');
}
/**
* is unsupported. Here we have a wrapper function to make later cleanup easier.
*/
public static function getTaxTerm() {
- $invoiceSettings = Civi::settings()->get('contribution_invoice_settings');
- return $invoiceSettings['tax_term'] ?? NULL;
+ return Civi::settings()->get('tax_term');
}
}