Added sell commodity feature.

This commit is contained in:
2016-07-21 16:24:07 +02:00
parent fb6b4fe027
commit 44c74a5cfe
13 changed files with 122 additions and 19 deletions
+5 -1
View File
@@ -7,6 +7,7 @@
#include <autotablemodel.h>
class ShopItem;
class IShopItem;
namespace Ui {
class ShopForm;
@@ -31,7 +32,7 @@ private slots:
void on_loadButton_clicked();
void onCountChanged();
void onCountChanged(int oldCount);
void on_receiptCombo_currentIndexChanged(int index);
@@ -39,6 +40,8 @@ private slots:
void on_showPaiedButton_clicked();
void on_btnAddItem_clicked();
private:
Ui::ShopForm *ui;
QSharedPointer<Voucher> m_voucher;
@@ -50,6 +53,7 @@ private:
void changeReceipt();
void connectItemSignals();
void createEmptyVoucher();
void addItem(QSharedPointer<IShopItem> item, int count);
};
#endif // SHOPFORM_H