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.
50 lines
625 B
C++
50 lines
625 B
C++
#include "sale.h"
|
|
#include <define.h>
|
|
|
|
Sale::Sale(QObject *parent) : QObject(parent)
|
|
{
|
|
m_id = 0;
|
|
m_sale = 0;
|
|
m_fixed = false;
|
|
}
|
|
|
|
int Sale::id() const
|
|
{
|
|
return m_id;
|
|
}
|
|
|
|
void Sale::setId(int id)
|
|
{
|
|
m_id = id;
|
|
}
|
|
|
|
QDecDouble Sale::sale() const
|
|
{
|
|
return TO_DEC(m_sale);
|
|
}
|
|
|
|
void Sale::setSale(QDecDouble sale)
|
|
{
|
|
m_sale = FROM_DEC(sale);
|
|
}
|
|
|
|
bool Sale::fixed() const
|
|
{
|
|
return m_fixed;
|
|
}
|
|
|
|
void Sale::setFixed(bool fixed)
|
|
{
|
|
m_fixed = fixed;
|
|
}
|
|
|
|
QString Sale::description() const
|
|
{
|
|
return m_description;
|
|
}
|
|
|
|
void Sale::setDescription(const QString &description)
|
|
{
|
|
m_description = description;
|
|
}
|