Multiple recurring invoices and invoice numbers

How does Invoice Ninja handle recurring invoices for the same client, but different locations, all configured to be sent on the same day at the same time? Will the generated invoices run into invoice number “collisions”?

Example:

Client number 55 {client.counter} = 00027.

Invoice number format = {client.number}+{client.counter}

Client number 55, Location 1, recurring invoice set to generate 2024/07/27 0600.
Client number 55, Location 2, recurring invoice set to generate 2024/07/27 0600

Does the system attempt to generate these in parallel, so that they would potentially be fighting over the same invoice number, or do they go into a queue and the first will get invoice number 5500027 and the next 5500028?

Until now I have been spacing the recurring invoices for different locations out by 1 day, which requires manually changing the email send time prior to creating the recurring invoice. If I don’t need to do that though that would be a time saver for me.

Thanks

Hi,

The invoices are generated sequentially, there’s a unique constraint on the invoice number in the database to prevent conflicts.