Added support for VAT calculations.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <QSharedPointer>
|
||||
|
||||
#include <core.h>
|
||||
#include <settings/globalsettings.h>
|
||||
|
||||
#include "data/shop-data.h"
|
||||
#include "ishopitem.h"
|
||||
@@ -16,6 +17,13 @@ public:
|
||||
void addShopItem(QSharedPointer<Voucher> voucher, QSharedPointer<IShopItem> item, int count);
|
||||
void calculate(QSharedPointer<Voucher> voucher);
|
||||
void calculateItem(QSharedPointer<VoucherItem> item);
|
||||
|
||||
private:
|
||||
QDecDouble includeVat(QDecDouble price, Enums::VatType vatType);
|
||||
void loadSettings();
|
||||
|
||||
QSharedPointer<GlobalSettings> m_gs;
|
||||
QDecDouble vatRate(Enums::VatType vatType);
|
||||
};
|
||||
|
||||
#endif // SHOPSERVICE_H
|
||||
|
||||
Reference in New Issue
Block a user