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
@@ -18,6 +18,7 @@ class CORESHARED_EXPORT GlobalSettings : public QObject
Q_PROPERTY(int ic READ ic WRITE setIc)
Q_PROPERTY(QString dic READ dic WRITE setDic)
Q_PROPERTY(bool vatPayer READ vatPayer WRITE setVatPayer)
Q_PROPERTY(bool pricesWithVAT READ pricesWithVAT WRITE setPricesWithVAT)
Q_PROPERTY(QString logoPath READ logoPath WRITE setLogoPath)
Q_PROPERTY(QDecDouble vatHigh READ vatHigh WRITE setVatHigh)
Q_PROPERTY(QDecDouble vatFirstLower READ vatFirstLower WRITE setVatFirstLower)
@@ -74,6 +75,9 @@ public:
QString phone() const;
void setPhone(const QString &phone);
bool pricesWithVAT() const;
void setPricesWithVAT(bool pricesWithVAT);
private:
QString m_firmName;
QString m_street;
@@ -83,6 +87,7 @@ private:
int m_ic;
QString m_dic;
bool m_vatPayer;
bool m_pricesWithVAT;
QString m_logoPath;
int m_vatHigh;
int m_vatFirstLower;