Date of Sales Invoice not before las invoice

Hello,

I hope you are all well.

I was wondering how do you manage to make invoices whose date is not before the last invoice issued.

So, what I would need is that chosing the Secuence of a Sales Invoice, before saving or validating the invoice the system could check that the inovice is inside the start date and end date of the fiscal year (this might be already in place, but as we don’t close fiscal years I am not noticing it), and mainly, that the date of the invoice is not before another invoice with lower sequence number.

At the moment we are relying on us trying to be alert with this, but we always make mistakes.

Thanks and kind regards from Spain,

Alb