Update last modified dates in PosController, NotaController, and AkhirController; enhance printing logic for thermal printers

This commit is contained in:
2026-11-02 16:09:57 +07:00
parent a5fd32ba79
commit d5b44789fe
3 changed files with 54 additions and 20 deletions
@@ -6,7 +6,7 @@
Description : Laporan Stok Akhir Barang
Created By : Siau Pheng ([email protected]).
Created Date : January 24th, 2011.
Last Modified : October 13th, 2026.
Last Modified : November 2nd, 2026.
(c) 3FONIA Software; WWW.3FONIA.COM.
@@ -93,8 +93,12 @@ class AkhirController {
$apre = $this->prepare();
$pre = new PrintPOS($this->app);
$pre->set_fontsize(2);//thermal
$pre->set_header_logo("logo-nota.png");//thermal
if (Invesa::Printer_Thermal(Param::Get("Printer", ""))) {
$pre->set_fontsize(2);
$pre->set_header_logo("logo-nota.png");
} else {
$pre->add_header($this->reg_name);
}
if ($this->app_inv['PRINT_AUTOCUT'] === 1) $pre->set_cutpaper();
$pre->add_empty();