Why don't you get proper POS or eCommerce software, and process each transaction as either a sale or a return.
When you pull up the customer it should show you their previous 'purchases'. If they have returned everything they 'purchased' then they won't have any 'purchases'.
I bet square could do it for you