Implemented base functionality of DirectSaleForm.
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
#include "directsaleitem.h"
|
||||
|
||||
DirectSaleItem::DirectSaleItem(QObject *parent) : QObject(parent)
|
||||
{
|
||||
m_count = 1;
|
||||
}
|
||||
|
||||
int DirectSaleItem::id()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
QString DirectSaleItem::name()
|
||||
{
|
||||
return m_name;
|
||||
}
|
||||
|
||||
QDecDouble DirectSaleItem::unitPrice()
|
||||
{
|
||||
return m_unitPrice;
|
||||
}
|
||||
|
||||
QString DirectSaleItem::pluginId()
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
int DirectSaleItem::count() const
|
||||
{
|
||||
return m_count;
|
||||
}
|
||||
|
||||
void DirectSaleItem::setCount(int count)
|
||||
{
|
||||
m_count = count;
|
||||
}
|
||||
|
||||
void DirectSaleItem::setName(const QString &name)
|
||||
{
|
||||
m_name = name;
|
||||
}
|
||||
|
||||
void DirectSaleItem::setUnitPrice(const QDecDouble &unitPrice)
|
||||
{
|
||||
m_unitPrice = unitPrice;
|
||||
}
|
||||
Reference in New Issue
Block a user