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