Merge fix

This commit is contained in:
2016-07-06 22:52:34 +02:00
parent e733901286
commit f9d7df9ab5
3 changed files with 26 additions and 7 deletions
+2
View File
@@ -106,6 +106,8 @@ void ShopForm::on_saveButton_clicked()
connect(form, &QDialog::accepted, [this]() {
ShopService srv;
m_voucher->setStatus(Voucher::NOT_PAID);
srv.saveVoucher(m_voucher);
m_voucher = srv.createVoucher();
m_itemsModel->setData(m_voucher->items());
ui->total->setText("0");