Data structures prepared for VAT.
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
#include "globalsettings.h"
|
||||
#include <define.h>
|
||||
|
||||
GlobalSettings::GlobalSettings(QObject *parent) : QObject(parent)
|
||||
{
|
||||
m_ic = 0;
|
||||
m_vatHigh = 0;
|
||||
m_vatFirstLower = 0;
|
||||
m_vatSecondLower = 0;
|
||||
}
|
||||
|
||||
QString GlobalSettings::firmName() const
|
||||
@@ -94,3 +98,33 @@ void GlobalSettings::setLogoPath(const QString &logoPath)
|
||||
{
|
||||
m_logoPath = logoPath;
|
||||
}
|
||||
QDecDouble GlobalSettings::vatHigh() const
|
||||
{
|
||||
return TO_DEC(m_vatHigh);
|
||||
}
|
||||
|
||||
void GlobalSettings::setVatHigh(QDecDouble vatHigh)
|
||||
{
|
||||
m_vatHigh = FROM_DEC(vatHigh);
|
||||
}
|
||||
QDecDouble GlobalSettings::vatFirstLower() const
|
||||
{
|
||||
return TO_DEC(m_vatFirstLower);
|
||||
}
|
||||
|
||||
void GlobalSettings::setVatFirstLower(QDecDouble vatFirstLower)
|
||||
{
|
||||
m_vatFirstLower = FROM_DEC(vatFirstLower);
|
||||
}
|
||||
QDecDouble GlobalSettings::vatSecondLower() const
|
||||
{
|
||||
return TO_DEC(m_vatSecondLower);
|
||||
}
|
||||
|
||||
void GlobalSettings::setVatSecondLower(QDecDouble vatSecondLower)
|
||||
{
|
||||
m_vatSecondLower = FROM_DEC(vatSecondLower);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user