From 74a6b460b4c04ab1901eb6759a61119ec5e496fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oriol=20Closa=20M=C3=A1rquez?= Date: Sat, 23 Sep 2017 13:33:55 +0200 Subject: [PATCH] Added ticket printed time. --- app/ThermalPrinter.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/ThermalPrinter.php b/app/ThermalPrinter.php index 7b8613d..908513d 100644 --- a/app/ThermalPrinter.php +++ b/app/ThermalPrinter.php @@ -18,6 +18,9 @@ public static function printTicket($reg_row, $reg_col, $reg_id, $reg_name, $reg_ $printer -> feed(2); $logo = EscposImage::load(public_path()."/assets/ticket/logo3.png"); $printer -> bitImage($logo); + $printer -> selectPrintMode(Printer::MODE_FONT_B); + $printer -> text("Printed on: ".date("d/m/Y H:i:s", time())); + $printer -> selectPrintMode(Printer::MODE_FONT_A); $printer -> feed(2); $printer -> selectPrintMode(Printer::MODE_DOUBLE_HEIGHT|Printer::MODE_DOUBLE_WIDTH); $printer -> text("Location: ".$reg_row.$reg_col);