release version for 340 Kroatia
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user