Sales
Access and create sales / invoices.
Methods
Invoke via \Components\Commerce\Sales::method()
Click a method name to copy it.
Generates an invoice from a sale
Gets a record from the database
Parameters
$iSaleId
int unsigned
A record's sale_id
Return a set of records from the database
Returns all sales for a particular contact
Gets a single field from a record
Parameters
$iSaleId
int unsigned
A record's sale_id
Returns the number of records in the database (matching the filter if specified)
Returns the number of sales for a contact
Deletes a record from the database
Parameters
$iSaleId
int unsigned
A record's sale_id
Return
Returns true if record existed and was deleted, otherwise false
Returns total sales, grouped by currency
Saves a record into the database
Saves a specific column of a row into a database
Parameters
$iSaleId
int unsigned
A record's sale_id
Return
Array of
Sales that match the search query.