You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
825 B
C++
60 lines
825 B
C++
#include "campshopitem.h"
|
|
|
|
CampShopItem::CampShopItem(QObject *parent)
|
|
:IShopItem(parent)
|
|
{
|
|
m_id = 0;
|
|
m_unitPrice = QDecDouble(0);
|
|
m_vatType = Enums::NONE;
|
|
}
|
|
|
|
QString CampShopItem::name()
|
|
{
|
|
return "Camp";
|
|
}
|
|
|
|
QString CampShopItem::shortName()
|
|
{
|
|
return "Camp";
|
|
}
|
|
|
|
QDecDouble CampShopItem::unitPrice()
|
|
{
|
|
return m_unitPrice;
|
|
}
|
|
|
|
Enums::VatType CampShopItem::vatType()
|
|
{
|
|
return m_vatType;
|
|
}
|
|
|
|
QString CampShopItem::pluginId() const
|
|
{
|
|
return "CAMP";
|
|
}
|
|
|
|
QString CampShopItem::code()
|
|
{
|
|
return "Camp";
|
|
}
|
|
|
|
void CampShopItem::setUnitPrice(const QDecDouble &unitPrice)
|
|
{
|
|
m_unitPrice = unitPrice;
|
|
}
|
|
|
|
void CampShopItem::setVatType(const Enums::VatType &vatType)
|
|
{
|
|
m_vatType = vatType;
|
|
}
|
|
|
|
long CampShopItem::id() const
|
|
{
|
|
return m_id;
|
|
}
|
|
|
|
void CampShopItem::setId(long id)
|
|
{
|
|
m_id = id;
|
|
}
|