Duplicate reference no?

How to find the duplicate reference no in purchase invoice?

You could try - clicking on the Purchase Invoice tab then click on the column heading “#”, this should re-sort the column into ascending or descending order.