If macro EET is not defined EET functions will be hidden.

This commit is contained in:
2023-06-02 15:04:53 +02:00
parent 8b132c6c51
commit 93eb98c10a
8 changed files with 105 additions and 8 deletions
+10
View File
@@ -421,3 +421,13 @@ QDecDouble VoucherSum::totalPrice() const
int VoucherSum::count() const {
return m_count;
}
VoucherSum::VoucherSum(int count, int totalPrice) : m_count(count), m_totalPrice(totalPrice) {}
void VoucherSum::addPrice(QDecDouble price) {
m_totalPrice += FROM_DEC(price);
}
void VoucherSum::addCount(int count) {
m_count += count;
}
+4
View File
@@ -210,9 +210,13 @@ class VoucherSum
QX_REGISTER_FRIEND_CLASS(VoucherSum)
public:
VoucherSum() = default;
VoucherSum(int count, int totalPrice);
QDecDouble totalPrice() const;
int count() const;
void addPrice(QDecDouble price);
void addCount(int count);
private:
int m_count{0};