2018-05-23 14:11:56 +02:00
|
|
|
#include "shopoverview.h"
|
|
|
|
|
#include "ui_shopoverview.h"
|
|
|
|
|
#include "shopservice.h"
|
|
|
|
|
|
|
|
|
|
ShopOverview::ShopOverview(QWidget *parent) :
|
|
|
|
|
QFrame(parent),
|
|
|
|
|
ui(new Ui::ShopOverview)
|
|
|
|
|
{
|
|
|
|
|
ui->setupUi(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ShopOverview::~ShopOverview()
|
|
|
|
|
{
|
|
|
|
|
delete ui;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ShopOverview::refresh()
|
|
|
|
|
{
|
|
|
|
|
ShopService srv;
|
|
|
|
|
|
|
|
|
|
VoucherSum unpaid = srv.unpaidSummary();
|
|
|
|
|
VoucherSum unsend = srv.unsendEET();
|
|
|
|
|
|
2023-04-28 22:25:29 +02:00
|
|
|
ui->labelUnapiedCount->setText(QString::number(unpaid.count()));
|
2018-05-23 14:11:56 +02:00
|
|
|
ui->labelUnpaiedAmount->setText(QString::number(unpaid.totalPrice().toDouble()));
|
2023-04-28 22:25:29 +02:00
|
|
|
ui->labelUnsendEET->setText(QString::number(unsend.count()));
|
2018-05-23 14:11:56 +02:00
|
|
|
}
|