|
Add support for third-party numbering plugins
-) If sequential numbers are set to No, then the order ID is first used, but then
third-party plugins can override the number by implementing the
woocommerce_invoice_number($default, $order_id) and/or
woocommerce_create_invoice_number($default, $order) filters
-) If sequential numbers are set to Yes, then third-party plugins will NOT be called.
This implements the API proposed at
http://open-tools.net/blog/63-proposal-for-a-general-api-for-third-party-woocommerce-invoice-numbering-plugins.html
for the "WooCommerce PDF Invoices" plugin by Andrew Benbow / WooThemes (woocommerce-pdf-invoice)
Also (Fix for order numbers):
- Use generic function to get the order number rather than solutions that are hardcoded to one plugin
|