Now I have noticed that the packing list file has the correct sequential number.
For example:
invoice number => 2016-0800089
packing list file => Packing-list-88
The invoice number has also to be 2016-0800088
In the settings the next invoice number is set correct.
Only if I choose “bank transfer” payment method the invoice number is getting the correct sequential number.
Plugin Contributor
Ewout
(@pomegranate)
Hi Volkan,
I’m not sure what you mean by the packing slip file and the invoice number, it’s pretty much impossible to get the order number (which is used for the packing slip filename) and the invoice numner (which is created only for invoices!) to always be the same and at the same time stay sequential too. More detailed information is in our documentation:
Invoice numbers explained
Without knowing more about the orders it’s difficult to say whether the skipped numbers were actually assigned to an order or whether they are really skipped. There is a known incompatibility with W3 Total Cache and Database caching. Is it possible you’re using this? Can you test with db caching turned off?
Let me know if that helps!
Ewout
Hi Ewout,
I thought the packing slip file gets the same number like the invoice.
I haven’t installed a plugin like W3 Total Cache and Database caching.
Which information do you need from the orders.
http://www.cidcom.at/invoice-number.png
Maybe you need login access ?
Do you think, if I buy the pro version it will fix the problem?
Thank you for your support.
Plugin Contributor
Ewout
(@pomegranate)
Hi Volkan,
The packing slip can’t get the same number, simply because it has to be independent from the invoice (someone may want to get a packing slip for an order that should not get an invoice number). This is why the packing slip uses the order number.
If you’re not using any caching plugin for WordPress (W3TC is the one I know has this problem sometimes, but other plugins like WP Optimize etc may have this issue too), then it’s more likely to be a plugin conflict. I see “Duplizieren | Neuer Entwurf” in your screenshot, which is not part of the default WooCommerce options. Could you try turning off all other WC plugins to see if the problem persists?
The pro version will not fix this problem, I’d be ashamed if it did – the free version should just work too!
Let me know what you find!
Ewout
I fix the issue.
For everyone who has maybe the same problem.
I had a function in my templates/functions.php to send the packing slip file automatically to the supplier.
I chachged
$display_number = $wpo_wcpdf->export->set_invoice_number($order->id);
to
$display_number = $wpo_wcpdf->export->get_display_number( $order_id );
Find the solution here.
Plugin Contributor
Ewout
(@pomegranate)
That explains. That thread is pretty old 🙂
I made this into a function of the Professional extension some time after that.
Glad to hear it’s resolved now!
Ewout