You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
617 B
C++
28 lines
617 B
C++
#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();
|
|
|
|
ui->labelUnapiedCount->setText(QString::number(unpaid.count()));
|
|
ui->labelUnpaiedAmount->setText(QString::number(unpaid.totalPrice().toDouble()));
|
|
ui->labelUnsendEET->setText(QString::number(unsend.count()));
|
|
}
|