Implemented "EET switch to offline" feature.
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include <QList>
|
||||
#include <QSharedPointer>
|
||||
#include <QSortFilterProxyModel>
|
||||
#include <QMessageBox>
|
||||
|
||||
#include "shop-odb.hxx"
|
||||
|
||||
@@ -327,7 +328,19 @@ void ShopForm::on_payButton_clicked()
|
||||
|
||||
if (!eetRet)
|
||||
{
|
||||
QString errMsg = tr("EET communication error.\n");
|
||||
|
||||
if (!eetMsg.isEmpty())
|
||||
{
|
||||
errMsg += tr("Message from portal: ") + eetMsg + "\n";
|
||||
}
|
||||
|
||||
errMsg += tr("Switch to offline?");
|
||||
|
||||
if (srv.isEetOnline() && QMessageBox::question(this, tr("EET error"), errMsg) == QMessageBox::Yes)
|
||||
{
|
||||
srv.setEetOnline(false);
|
||||
}
|
||||
}
|
||||
|
||||
ReceiptGenerator generator;
|
||||
|
||||
Reference in New Issue
Block a user