function commerce_invoice_save in Commerce Invoice 7
Saves an invoice.
Parameters
$invoice: The full invoice object to save.
Return value
The saved invoice object.
1 call to commerce_invoice_save()
1 string reference to 'commerce_invoice_save'
- commerce_invoice_entity_info in ./
commerce_invoice.module - Implements hook_entity_info().
File
- ./
commerce_invoice.module, line 160 - Generates the invoice and allows you to display an invoice id in views
Code
function commerce_invoice_save($invoice) {
return entity_get_controller('commerce_invoice')
->save($invoice);
}