Added sales to people. Print button on Camp wizard is now functional. Added item grids below Camp main grid.

This commit is contained in:
2017-06-08 14:24:33 +02:00
parent e5b33fa973
commit cc6111d09f
15 changed files with 497 additions and 238 deletions
+22
View File
@@ -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);
}