Added possibility for creating vouchers from other module.

This commit is contained in:
2017-06-07 15:54:13 +02:00
parent 35696fbfea
commit d163a92293
7 changed files with 86 additions and 36 deletions
+6
View File
@@ -9,6 +9,11 @@
#include "data/shop-data.h"
#include "shopitem.h"
class PayDialog;
class ShopForm;
void payVoucherFromUI(VoucherPtr voucher, PayDialog *dialog, ShopForm *form = NULL);
class ShopService : public Service<Voucher>
{
public:
@@ -41,6 +46,7 @@ private:
public:
void saveVoucher(VoucherPtr entity);
void updateVoucher(VoucherPtr entity);
void eraseVoucher(VoucherPtr entity);
};
#endif // SHOPSERVICE_H