Added support for saving receipts.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user