queries for receipt printout done