class CRM_Invoicing_Utils

Methods

static 
onToggle(bool $oldValue, bool $newValue, array $metadata)

Function to call when invoicing is toggled on or off.

static 
isInvoicingEnabled()

Function to call to determine if invoicing is enabled.

static 
getDefaultPaymentPage()

Function to call to determine default invoice page.

static 
getTaxTerm()

Function to get the tax term.

Details

at line 44
static onToggle(bool $oldValue, bool $newValue, array $metadata)

Function to call when invoicing is toggled on or off.

We add or remove invoicing from the user dashboard here.

Parameters

bool $oldValue
bool $newValue
array $metadata

at line 71
static isInvoicingEnabled()

Function to call to determine if invoicing is enabled.

Historically the invoicing was declared as a setting but actually set within contribution_invoice_settings (which stores multiple settings as an array in a non-standard way).

We check both here. But will deprecate the latter in time.

at line 88
static getDefaultPaymentPage()

Function to call to determine default invoice page.

Historically the invoicing was declared as a setting but actually set within contribution_invoice_settings (which stores multiple settings as an array in a non-standard way).

We check both here. But will deprecate the latter in time.

at line 103
static getTaxTerm()

Function to get the tax term.

The value is nested in the contribution_invoice_settings setting - which is unsupported. Here we have a wrapper function to make later cleanup easier.