Improved work with number series. Added season to voucher record.
This commit is contained in:
@@ -291,6 +291,16 @@ void Voucher::setSaveDateTime(const QDateTime &saveDateTime)
|
||||
m_saveDateTime = saveDateTime;
|
||||
}
|
||||
|
||||
SeasonPtr Voucher::season() const
|
||||
{
|
||||
return m_season;
|
||||
}
|
||||
|
||||
void Voucher::setSeason(const SeasonPtr &season)
|
||||
{
|
||||
m_season = season;
|
||||
}
|
||||
|
||||
int Voucher::id() const
|
||||
{
|
||||
return m_id;
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <QString>
|
||||
#include <QSharedPointer>
|
||||
#include <addressbookdata.h>
|
||||
#include <season.h>
|
||||
#include <odb/core.hxx>
|
||||
#include <odb/qt/list.hxx>
|
||||
|
||||
@@ -143,6 +144,9 @@ public:
|
||||
QDateTime saveDateTime() const;
|
||||
void setSaveDateTime(const QDateTime &saveDateTime);
|
||||
|
||||
SeasonPtr season() const;
|
||||
void setSeason(const SeasonPtr &season);
|
||||
|
||||
private:
|
||||
friend class odb::access;
|
||||
#pragma db id auto
|
||||
@@ -173,6 +177,7 @@ private:
|
||||
#pragma db value_not_null inverse(m_voucher)
|
||||
QOdbList<QSharedPointer<VoucherItem> > m_items;
|
||||
VoucherStatus m_status;
|
||||
SeasonPtr m_season;
|
||||
};
|
||||
|
||||
typedef QSharedPointer<Voucher> VoucherPtr;
|
||||
|
||||
Reference in New Issue
Block a user