release version for 340 Kroatia

This commit is contained in:
2026-08-17 08:04:25 +02:00
parent ae59e77dba
commit 269f9466c5
3 changed files with 14 additions and 4 deletions
+12 -4
View File
@@ -923,6 +923,15 @@ void ATBDeviceControllerPlugin::requestPrintQR(const QString & printingString)
//QTimer::singleShot(2000, this, [this](){ hw->prn_cut(3); } );
}
void ATBDeviceControllerPlugin::requestPrintCutFiscal(const qint16 & printTimer)
{
qCritical() << "requestPrintCutFiscal --------------------------------------------";
hw->prn_switchPower(true);
QTimer::singleShot(200, this, [this](){ hw->prn_cut(3);
QTimer::singleShot(1800, this, SLOT(onPrinterWaitForPrintingFiscal()));
} );
}
void ATBDeviceControllerPlugin::requestPrintCut(const qint16 & printTimer)
{
QTimer::singleShot(printTimer, this, SLOT(onPrinterWaitForPrintingReceipt()));
@@ -980,8 +989,8 @@ void ATBDeviceControllerPlugin::onPrinterWaitForPrintingFiscal()
switch (printerResult) {
case 0: // still printing
qCritical() << "--> printer: WaitForPrintingReceipt";
QTimer::singleShot(2000, this, SLOT(onPrinterWaitForPrintingReceipt()));
qCritical() << "--> printer: WaitForPrintingFiscal";
QTimer::singleShot(2000, this, SLOT(onPrinterWaitForPrintingFiscal())); // should be changed to fiscal !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! DS
break;
case 1: // printing finished, Ok
qCritical() << "DC Finished printing fiscal";
@@ -989,8 +998,7 @@ void ATBDeviceControllerPlugin::onPrinterWaitForPrintingFiscal()
// TODO: TicketNumber
"",
"");
hw->prn_switchPower(true);
QTimer::singleShot(200, this, [this](){ hw->prn_cut(3); } );
break;
case 2: // printing finished, Error
qCritical() << "DC Error: wait for printing fiscal";