Fixed bug in saving voucher.
This commit is contained in:
+1
-1
@@ -140,7 +140,7 @@ void ShopForm::on_saveButton_clicked()
|
|||||||
if (form->saveAsNew())
|
if (form->saveAsNew())
|
||||||
{
|
{
|
||||||
m_voucher->setStatus(Voucher::NOT_PAID);
|
m_voucher->setStatus(Voucher::NOT_PAID);
|
||||||
srv.saveVoucher(m_voucher);
|
srv.updateVoucher(m_voucher);
|
||||||
createEmptyVoucher();
|
createEmptyVoucher();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user