how to generate a numbered receipt