added console.log to output the amount to tell the printer