How to change sequence of already posted purchase invoice?

I have posted a few invoices with incorrect sequences now I want to change the sequence.

Could you please suggest the best way to do it?

Sequence in what sense with naming series ?

Yes, by mistaken I forgot to apply (.) dot before #### and not it is showing sequence with hash.

What has been done - PINV-2019-####0001

What is required - PINV-2019-0001

Once submitted you cannot change the sequence. You can Cancel and Amend the PI to resubmit. Else write an custom script if there are many.