If macro EET is not defined EET functions will be hidden.

This commit is contained in:
2023-06-02 15:04:53 +02:00
parent 8b132c6c51
commit 93eb98c10a
8 changed files with 105 additions and 8 deletions
+13 -1
View File
@@ -7,6 +7,11 @@ ShopOverview::ShopOverview(QWidget *parent) :
ui(new Ui::ShopOverview)
{
ui->setupUi(this);
#ifndef EET
ui->labelUnsendEET->setVisible(false);
ui->label_6->setVisible(false);
#endif
}
ShopOverview::~ShopOverview()
@@ -19,9 +24,16 @@ void ShopOverview::refresh()
ShopService srv;
VoucherSum unpaid = srv.unpaidSummary();
VoucherSum unsend = srv.unsendEET();
ui->labelUnapiedCount->setText(QString::number(unpaid.count()));
ui->labelUnpaiedAmount->setText(QString::number(unpaid.totalPrice().toDouble()));
VoucherSum today = srv.salesSummary(QDate::currentDate());
ui->labelSales->setText(QString::number(today.totalPrice().toDouble()));
ui->labelNumSales->setText(QString::number(today.count()));
#ifdef EET
VoucherSum unsend = srv.unsendEET();
ui->labelUnsendEET->setText(QString::number(unsend.count()));
#endif
}