Added sales to people. Print button on Camp wizard is now functional. Added item grids below Camp main grid.
This commit is contained in:
@@ -6,6 +6,8 @@ AddressItem::AddressItem(QObject *parent) : QObject(parent)
|
||||
m_id = 0;
|
||||
m_price = 0;
|
||||
m_owner = false;
|
||||
m_sale = 0;
|
||||
m_totalPrice = 0;
|
||||
}
|
||||
|
||||
int AddressItem::id() const
|
||||
@@ -97,3 +99,23 @@ void AddressItem::setOwner(bool owner)
|
||||
{
|
||||
m_owner = owner;
|
||||
}
|
||||
|
||||
QDecDouble AddressItem::totalPrice() const
|
||||
{
|
||||
return TO_DEC(m_totalPrice);
|
||||
}
|
||||
|
||||
void AddressItem::setTotalPrice(QDecDouble totalPrice)
|
||||
{
|
||||
m_totalPrice = FROM_DEC(totalPrice);
|
||||
}
|
||||
|
||||
QDecDouble AddressItem::sale() const
|
||||
{
|
||||
return TO_DEC(m_sale);
|
||||
}
|
||||
|
||||
void AddressItem::setSale(QDecDouble sale)
|
||||
{
|
||||
m_sale = FROM_DEC(sale);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user