Finish the receipt function