Duplicate in Invoice Voucher (same Voucher Number) in two different days

I found the dublicate Purchace Invoices for the same supplier in two different days as attached photo, i dont know how its come , but i need to cancel one of the P invoice without effecting the connection document like Payment entry.

could you please help on this …
thanks in advance …

any suggestion ?

There is a setting which when enabled in Account Settings, will not let you add duplicate PI invoices.

Enable that.

@frewper thank you for your reply
but how i can solve the existing duplication in the invoices, i have more than 200 PI