diff --git a/shop/shopform.cpp b/shop/shopform.cpp index d3cb461..7861b76 100644 --- a/shop/shopform.cpp +++ b/shop/shopform.cpp @@ -140,7 +140,7 @@ void ShopForm::on_saveButton_clicked() if (form->saveAsNew()) { m_voucher->setStatus(Voucher::NOT_PAID); - srv.saveVoucher(m_voucher); + srv.updateVoucher(m_voucher); createEmptyVoucher(); } else