CRM_Invoicing_Utils
in package
Tags
Table of Contents
Methods
- getTaxTerm() : mixed
- Function to get the tax term.
- isInvoicingEnabled() : mixed
- Function to call to determine if invoicing is enabled.
- onToggle() : mixed
- Function to call when invoicing is toggled on or off.
Methods
getTaxTerm()
Function to get the tax term.
public
static getTaxTerm() : mixed
since 5.68 expected removal time to be added when we add noisy deprecation.
Use Civi::settings()->get('tax_term') instead.
isInvoicingEnabled()
Function to call to determine if invoicing is enabled.
public
static isInvoicingEnabled() : mixed
since 5.68 expected removal time to be added when we add noisy deprecation.
Use Civi::settings()->get('invoicing') instead.
onToggle()
Function to call when invoicing is toggled on or off.
public
static onToggle(bool $oldValue, bool $newValue, array<string|int, mixed> $metadata) : mixed
We add or remove invoicing from the user dashboard here.
Parameters
- $oldValue : bool
- $newValue : bool
- $metadata : array<string|int, mixed>