How to check if the receipt is reprinted?