How to deal with duplicate invoices

I need help marking invoices which are a duplicate, It should be marked in M-files if the vendor number & invoice number is the same with another incoming invoice, that it is a duplicate, how do I implement this ? Property Calculator ? And what would that look like ? Thank you.