The numbering of invoices within each series must be correlative and in chronological order.
It should also be noted that for corrective invoices it is mandatory that there is a series of invoices that maintain this correlation between them and that are easily identifiable as rectifying invoices.
This series of invoices is usually identified by an "R" in front of each series, followed by a hyphen along with the invoice number.
For more information you can consult this link on rectifying invoices.