You are here

function commerce_invoice_delete in Commerce Invoice 7

Deletes an invoice by ID.

Parameters

$invoice: The ID of the invoice to delete.

Return value

TRUE on success, FALSE otherwise.

1 string reference to 'commerce_invoice_delete'
commerce_invoice_entity_info in ./commerce_invoice.module
Implements hook_entity_info().

File

./commerce_invoice.module, line 173
Generates the invoice and allows you to display an invoice id in views

Code

function commerce_invoice_delete($invoice_id) {
  return commerce_invoice_delete_multiple(array(
    $invoice_id,
  ));
}