Added support for Value Added Tax.

This commit is contained in:
2017-10-13 12:58:26 +02:00
parent 8e7137f3bb
commit b8ed333c3a
14 changed files with 665 additions and 34 deletions
+5
View File
@@ -11,6 +11,8 @@
#include "shop_global.h"
#define ROUNDING_ITEM -9999
class PayDialog;
class ShopForm;
@@ -32,6 +34,8 @@ public:
void setEetOnline(bool online);
bool isEetOnline();
bool isEetEnabled();
void roundVoucher(VoucherPtr voucher);
VoucherItemPtr roundingItem(VoucherPtr voucher);
QList<VoucherPtr> savedVouchers();
QList<VoucherPtr> tempVouchers();
QList<VoucherPtr> paiedVouchers();
@@ -40,6 +44,7 @@ public:
private:
QDecDouble includeVat(QDecDouble price, Enums::VatType vatType);
QDecDouble excludeVat(QDecDouble price, Enums::VatType vatType);
void loadSettings();
QSharedPointer<GlobalSettings> m_gs;