Added support for Value Added Tax.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define RECEIPTSETTINGS_H
|
||||
|
||||
#include <QObject>
|
||||
#include <enums.h>
|
||||
|
||||
class ShopSettings : public QObject
|
||||
{
|
||||
@@ -22,6 +23,10 @@ class ShopSettings : public QObject
|
||||
Q_PROPERTY(int favBtnRows READ favBtnRows WRITE setFavBtnRows)
|
||||
Q_PROPERTY(int favBtnSize READ favBtnSize WRITE setFavBtnSize)
|
||||
|
||||
Q_PROPERTY(Enums::Rounding rounding READ rounding WRITE setRounding)
|
||||
Q_PROPERTY(int decimalPlaces READ decimalPlaces WRITE setDecimalPlaces)
|
||||
Q_PROPERTY(QString roundingItem READ roundingItem WRITE setRoundingItem)
|
||||
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
@@ -77,6 +82,15 @@ public:
|
||||
int favBtnSize() const;
|
||||
void setFavBtnSize(int favBtnSize);
|
||||
|
||||
Enums::Rounding rounding() const;
|
||||
void setRounding(const Enums::Rounding &rounding);
|
||||
|
||||
int decimalPlaces() const;
|
||||
void setDecimalPlaces(int decimalPlaces);
|
||||
|
||||
QString roundingItem() const;
|
||||
void setRoundingItem(const QString &roundingItem);
|
||||
|
||||
private:
|
||||
QString m_output;
|
||||
CODEPAGE m_codepage;
|
||||
@@ -95,6 +109,10 @@ private:
|
||||
int m_favBtnCols;
|
||||
int m_favBtnRows;
|
||||
int m_favBtnSize;
|
||||
|
||||
Enums::Rounding m_rounding;
|
||||
int m_decimalPlaces;
|
||||
QString m_roundingItem;
|
||||
};
|
||||
|
||||
typedef QSharedPointer<ShopSettings> ShopSettingsPtr;
|
||||
|
||||
Reference in New Issue
Block a user