new function printreceipt