Skip to content
This repository has been archived by the owner on Mar 19, 2020. It is now read-only.

Commit

Permalink
Added ticket printed time.
Browse files Browse the repository at this point in the history
  • Loading branch information
oriolclosa committed Sep 23, 2017
1 parent 0f3891c commit 74a6b46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/ThermalPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 74a6b46

Please sign in to comment.