You are here

function commerce_invoice_rules_generate in Commerce Invoice 7

1 string reference to 'commerce_invoice_rules_generate'
commerce_invoice_rules_action_info in ./commerce_invoice.rules.inc
Implements hook_rules_action_info().

File

./commerce_invoice.rules.inc, line 70
Rules integration for invoices.

Code

function commerce_invoice_rules_generate($order) {
  $invoice = commerce_invoice_new($order->uid, $order->order_id);
  commerce_invoice_save($invoice);
}