Plugin Contributor
Ewout
(@pomegranate)
Hi! Can you give me a link to that history they reffered you to? The number is available through the API: https://wordpress.org/support/topic/retreive-all-invoice-numbers/
Note that invoice numbers, without any outside control, are only generated when an invoice is created, which can be either manually or by email attachment. If the POS doesn’t send any emails, then no invoice numbers will be created by the plugin. More information: When is the PDF invoice number assigned?
Ewout
Hello
So if I understood correctly, the invoice number is automatically generated only according to the checked status in the general setting of “attach invoice to:” of your plugin.
The POS (cash register system) has it as a status of command “finished” but I do not find this status “finished” in the list of statuses of your plugin.
How do I add this “finished” status to the “Attach invoice to:” list on your plugin?
And why did it work well 20 days ago when no updates were made?
cordially
Plugin Contributor
Ewout
(@pomegranate)
Actually it is not the status it attaches to, but the email. If the ‘Finished’ status does not have an email associated with it, then you can’t attach the PDF to it either. I don’t know why it still worked 20 days ago, was the POS plugin not updated either? If so, something must have changed in the settings. Or perhaps something stopped working because memory became short? In that case you may find more information in the (PHP) error log from your site.
Ok I understood. I activated “Email New Order (Administrator)” that my client had disabled to stop receiving mail at every store order and everything works. Thank you for your return and your explanations. cordially
Plugin Contributor
Ewout
(@pomegranate)
Glad to hear that’s resolved. Please note that most shop owners would not want the invoice to be created that early because that means that cancelled orders would also get an invoice number and you’d have to create credit notes for those too… Invoice numbers explained
Ewout