function commerce_invoice_load in Commerce Invoice 7
Loads an invoice by ID.
1 call to commerce_invoice_load()
- commerce_invoice_load_by_order_id in ./
commerce_invoice.module - Loads an invoice by order ID
1 string reference to 'commerce_invoice_load'
- commerce_invoice_entity_info in ./
commerce_invoice.module - Implements hook_entity_info().
File
- ./
commerce_invoice.module, line 80 - Generates the invoice and allows you to display an invoice id in views
Code
function commerce_invoice_load($invoice_id) {
$invoices = commerce_invoice_load_multiple(array(
$invoice_id,
), array());
return $invoices ? reset($invoices) : FALSE;
}