shorten time for TicketType
This commit is contained in:
@@ -358,6 +358,7 @@ void ATBDeviceControllerPlugin::requestStopCashInput()
|
||||
|
||||
void ATBDeviceControllerPlugin::cashCollect()
|
||||
{
|
||||
qCritical() << "cashCollect() called ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++";
|
||||
hw->vend_success();
|
||||
|
||||
// inserted amount
|
||||
@@ -927,8 +928,14 @@ 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()));
|
||||
QTimer::singleShot(200, this, [this]()
|
||||
{
|
||||
hw->prn_cut(3);
|
||||
|
||||
QTimer::singleShot(1800, this, [this]()
|
||||
{
|
||||
onPrinterWaitForPrintingFiscal();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1281,17 +1288,17 @@ void ATBDeviceControllerPlugin::onPrinterPrintNextTemplate()
|
||||
if (this->currentTicket->templateList()->isEmpty()) {
|
||||
// all templates are printed
|
||||
this->printResultCheckCounter = 0;
|
||||
QTimer::singleShot(2000, this, SLOT(onPrinterWaitForPrintingTicket()));
|
||||
QTimer::singleShot(200, this, SLOT(onPrinterWaitForPrintingTicket()));
|
||||
}
|
||||
else {
|
||||
|
||||
if (this->currentTicket->hasTemplateDynData()) {
|
||||
// set new dyn data:
|
||||
QTimer::singleShot(2000, this, SLOT(onPrinterPrepareDynTemplateData()));
|
||||
QTimer::singleShot(400, this, SLOT(onPrinterPrepareDynTemplateData()));
|
||||
}
|
||||
else {
|
||||
// print next template
|
||||
QTimer::singleShot(2000, this, SLOT(onPrinterPrintNextTemplate()));
|
||||
QTimer::singleShot(50, this, SLOT(onPrinterPrintNextTemplate()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user