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);