Added support for saving receipts.

This commit is contained in:
2016-05-29 18:31:46 +02:00
parent 9707ec7c66
commit facaf98cf0
14 changed files with 128 additions and 32 deletions
+6
View File
@@ -17,6 +17,7 @@ public:
void addShopItem(QSharedPointer<Voucher> voucher, QSharedPointer<IShopItem> item, int count);
void calculate(QSharedPointer<Voucher> voucher);
void calculateItem(QSharedPointer<VoucherItem> item);
void loadItems(QSharedPointer<Voucher> voucher);
private:
QDecDouble includeVat(QDecDouble price, Enums::VatType vatType);
@@ -24,6 +25,11 @@ private:
QSharedPointer<GlobalSettings> m_gs;
QDecDouble vatRate(Enums::VatType vatType);
// Service interface
public:
virtual void save(QSharedPointer<Voucher> entity) override;
virtual void update(QSharedPointer<Voucher> entity) override;
};
#endif // SHOPSERVICE_H