Update last modified dates in PosController, NotaController, and AkhirController; enhance printing logic for thermal printers
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
Description : Laporan Penerimaan Dana POS / Kasir
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : September 8th, 2012.
|
||||
Last Modified : October 9th, 2026.
|
||||
Last Modified : November 2nd, 2026.
|
||||
|
||||
(c) 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
@@ -16,6 +16,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Controller\Report\Dana;
|
||||
|
||||
use App\Utils\Invesa;
|
||||
use flight\Engine;
|
||||
use flight\database\SimplePdo;
|
||||
use flight\Session;
|
||||
@@ -91,8 +92,12 @@ class PosController {
|
||||
$tot_dana = $tot_jual + $tot_pulsa - $tot_potong - $tot_diskon;
|
||||
|
||||
$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_OPENCD'] === 1) $pre->set_opendrawer();
|
||||
if ($this->app_inv['PRINT_AUTOCUT'] === 1) $pre->set_cutpaper();
|
||||
$pre->add_empty();
|
||||
|
||||
Reference in New Issue
Block a user