Initial commit containing original code from user koyama.
Including additions from user cfab:
* adding a conditional action to generate the invoice automatically
Including additions from user derjochenmeyer:
* cleaned up the code to meet Drupal's coding standards.
* use hook_uc_invoice_templates to meet requirements of ubercarts new template system
* rewrite the invoice template from itpl.php to new tpl.php
Including additions from user fuerst:
* Added hook_theme_registry_alter(): Allow template file to stay in uc_invoice/templates.
* Changed template name for the On-site invoice template option from invoice to invoice-number to make clear the modules template should be choosen.
* Renamed the template from uc_invoice-invoice.tpl.php to uc_order-invoice-number.tpl.php. Note: Invoice templates must start by uc_order- to be recognized by the Order module.
* Fixed wrong variable call for the Invoice ID in the template file: $order->invoice['invoice_id'] instead of $order->invoice_id
* Added Invoice date to the template file because Invoice date may by different from Order date.
* Added module dependencies: uc_order and ca.
* Renamed it in the uc_invoice.info from UC Invoice to Invoice Number to reflect it's aim better.
* Fixed some typos.
* Updated README.txt