Allocations
The relationship between receipts and the sales/adjustments they are allocated to.
Methods
Invoke via \Components\Commerce\Sales\Receipts\Allocations::method()
Click a method name to copy it.
Deallocates all receipts for a sale
Deallocates all for a specific receipt
Deallocates all allocations for a receipt and sale
Allocates a receipt to a sale or adjustment
Deletes a record from the database
Parameters
$iReceiptAllocationId
int unsigned
A record's receipt_allocation_id
Return
Returns true if record existed and was deleted, otherwise false
Gets a record from the database
Parameters
$iReceiptAllocationId
int unsigned
A record's receipt_allocation_id
Return a set of records from the database
Returns all the allocations for a given receipt id
Returns all receipt allocations for a given sale id
Gets a single field from a record
Parameters
$iReceiptAllocationId
int unsigned
A record's receipt_allocation_id
Returns the number of records in the database (matching the filter if specified)
Returns the amount allocated to sales for a receipt
Returns the amount allocated to an sale for a specific receipt
Returns the amount allocated to a sale
Determines if a receipt is allocated to some sales
Saves a record into the database
Saves a specific column of a row into a database
Parameters
$iReceiptAllocationId
int unsigned
A record's receipt_allocation_id
Return
Array of
Allocations that match the search query.