Added sales to people. Print button on Camp wizard is now functional. Added item grids below Camp main grid.
This commit is contained in:
@@ -20,6 +20,8 @@ class AddressItem : public QObject
|
||||
Q_PROPERTY(QString lastName READ lastName WRITE setLastName)
|
||||
Q_PROPERTY(QString address READ address WRITE setAddress)
|
||||
Q_PROPERTY(QDecDouble price READ price WRITE setPrice)
|
||||
Q_PROPERTY(QDecDouble sale READ sale WRITE setSale)
|
||||
Q_PROPERTY(QDecDouble totalPrice READ totalPrice WRITE setTotalPrice)
|
||||
Q_PROPERTY(bool owner READ owner WRITE setOwner)
|
||||
|
||||
public:
|
||||
@@ -52,6 +54,12 @@ public:
|
||||
bool owner() const;
|
||||
void setOwner(bool owner);
|
||||
|
||||
QDecDouble totalPrice() const;
|
||||
void setTotalPrice(QDecDouble totalPrice);
|
||||
|
||||
QDecDouble sale() const;
|
||||
void setSale(QDecDouble sale);
|
||||
|
||||
private:
|
||||
friend class odb::access;
|
||||
#pragma db id auto
|
||||
@@ -61,6 +69,8 @@ private:
|
||||
QString m_address;
|
||||
AddressbookDataPtr m_adbItem;
|
||||
int m_price;
|
||||
int m_totalPrice;
|
||||
int m_sale;
|
||||
#pragma db not_null
|
||||
QWeakPointer<CampData> m_campData;
|
||||
PersonPricePtr m_personPrice;
|
||||
|
||||
Reference in New Issue
Block a user