This commit is contained in:
2016-07-25 22:41:39 +02:00
parent f9d7df9ab5
commit 452d58ac4f
8 changed files with 62 additions and 22 deletions
+1 -4
View File
@@ -105,10 +105,7 @@ void ShopForm::on_saveButton_clicked()
form->setAttribute(Qt::WA_DeleteOnClose);
connect(form, &QDialog::accepted, [this]() {
ShopService srv;
m_voucher->setStatus(Voucher::NOT_PAID);
srv.saveVoucher(m_voucher);
m_voucher = srv.createVoucher();
createEmptyVoucher();
m_itemsModel->setData(m_voucher->items());
ui->total->setText("0");
});