Invoice line items

Each invoice is made up of individual line items.

Each line item is associated with a specific invoiceId.

class Item extends AbstractModel

Properties summary

Type Property Description
$timestamps
int $id Unique id number for this line item.
int $invoiceId Invoice ID for the invoice this line item belongs to.
int $userId UserID of the invoice this line item belongs to.
string $type The type of item to which this invoice line item relates. Empty for no relationship.
int $relatedEntityId The related id of the corresponding entity type.
string $description A text description of this line item.
float $amount Total amount due for this line item.
bool $taxed True, if this items is taxable, otherwise false.
Carbon $dueDate Date this line item is due.
string $paymentMethod Internal name of payment gateway module selected for this line item.
string $notes Any admin supplied notes for this line item. (This property is not used internally by WHMCS, but is left in place for legacy purposes.)
Invoice $invoice The invoice this line item belongs to.

Methods summary

Return Type Method Name Description
BelongsTo invoice() Each invoice item belongs to an invoice.

Details

BelongsTo invoice ()

Each invoice item belongs to an invoice.

Return Value

BelongsTo