May generate invoice number before sending mail

Hello

Just a slight worry found:
With in the parameters of the invoices
"Generate Invoice Number Invoice Drafts" is set to “No”
+
“Mark invoices as sent when PDF is generated” is set to “Yes”

The invoice creation is OK.
When I send the invoice by mail "without the invoice number generated"
This sends an invoice in PDF and the mail without invoice number …
But this generates and saves the invoice number in the system after sending it.

So what I have to do before sending an invoice by e-mail is to put the invoice status in Sent, save the invoice and send it really.

It’s not blocking, but I think it may help if I point it out.

Sorry for the moving @Kovah