Added support for saving receipts.

This commit is contained in:
2016-05-29 18:31:46 +02:00
parent 9707ec7c66
commit facaf98cf0
14 changed files with 128 additions and 32 deletions
+8
View File
@@ -5,9 +5,12 @@
#include <QString>
#include <QDecDouble.hh>
#include <odb/core.hxx>
#include <QSharedPointer>
#include <enums.h>
class Voucher;
#pragma db object
class VoucherItem : public QObject
{
@@ -56,6 +59,9 @@ public:
QDecDouble vatAmount() const;
QWeakPointer<Voucher> voucher() const;
void setVoucher(const QWeakPointer<Voucher> &voucher);
signals:
void countChanged();
@@ -72,6 +78,8 @@ private:
int m_refId;
QString m_itemPlugin;
Enums::VatType m_vatType;
#pragma db not_null
QWeakPointer<Voucher> m_voucher;
};
#endif // VOUCHERITEM_H