User Guide & Reference Manual

Invoice Model

Retrieve and search invoices.

Initialization


$this->load->model('billing/invoice_model');

Method Reference

array invoice_lines (int $invoice_id)

Retrieve an array of itemized products/subscriptions for an invoice.

array get_invoice_data (int $invoice_id)

Retrieve an array of all calculated totals and data for the invoice, saved from the cart_model during checkout.

array get_invoice (int $invoice_id)

Retrieve an individual invoice. Returns the same variables as get_invoices(), documented below.

float get_invoices_total ( [array $filters = array() , boolean $counting])

Retrieve the total currency amount for all invoices matching your filters.

Arguments:

Possible Filters:

array get_invoices ( [array $filters = array() , boolean $counting])

Retrieve an array of all invoices matching the optional filters.

Possible Filters:

Arguments:

Returns each invoice as an array with the following keys: