Reply To: Bug: Error in reservation numbering

The problem is that reservations with those IDs already got generated and these IDs are still saved to calculated the correct number back. You are the one who asked how to reset the reservation ids to 1, right? That’s a side effect.
Now you have a mix of new reservations and the old saved ones in the same array. That means if you use it further it’ll happen again and if you reset that array the new reservations invoices will be wrong. As best reset it and then go through each reservation from 1 upwards manually and GENERATE the invoice once.
I’ll have to do the reset, but the order in that you generate the invoices afterwards is important so make sure nobody else uses it in between. I’ll do the reset tomorrow at this time if you say so.
Regards