Implemented camp wizard and service methods for camp calculation.
This commit is contained in:
@@ -5,7 +5,9 @@ ServiceItem::ServiceItem(QObject *parent) : QObject(parent)
|
||||
{
|
||||
m_id = 0;
|
||||
m_salePossible = false;
|
||||
m_sale = 0;
|
||||
m_price = 0;
|
||||
m_totalPrice = 0;
|
||||
m_type = AccService::OTHER;
|
||||
}
|
||||
|
||||
@@ -78,3 +80,43 @@ void ServiceItem::setCampData(const QWeakPointer<CampData> &campData)
|
||||
{
|
||||
m_campData = campData;
|
||||
}
|
||||
|
||||
QString ServiceItem::description() const
|
||||
{
|
||||
return m_description;
|
||||
}
|
||||
|
||||
void ServiceItem::setDescription(const QString &description)
|
||||
{
|
||||
m_description = description;
|
||||
}
|
||||
|
||||
QDecDouble ServiceItem::sale() const
|
||||
{
|
||||
return TO_DEC(m_sale);
|
||||
}
|
||||
|
||||
void ServiceItem::setSale(QDecDouble sale)
|
||||
{
|
||||
m_sale = FROM_DEC(sale);
|
||||
}
|
||||
|
||||
QDecDouble ServiceItem::totalPrice() const
|
||||
{
|
||||
return TO_DEC(m_totalPrice);
|
||||
}
|
||||
|
||||
void ServiceItem::setTotalPrice(QDecDouble totalPrice)
|
||||
{
|
||||
m_totalPrice = FROM_DEC(totalPrice);
|
||||
}
|
||||
|
||||
QDecDouble ServiceItem::fullPrice() const
|
||||
{
|
||||
return TO_DEC(m_fullPrice);
|
||||
}
|
||||
|
||||
void ServiceItem::setFullPrice(QDecDouble fullPrice)
|
||||
{
|
||||
m_fullPrice = FROM_DEC(fullPrice);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user