Added setting for default VAT type on Direct sell dialog. Fixed some compiler warnings.
This commit is contained in:
@@ -48,6 +48,14 @@ ShopSettingsForm::ShopSettingsForm(QWidget *parent) :
|
||||
registerBinding(ui->doublePrint);
|
||||
registerBinding(ui->doublePrintItem);
|
||||
|
||||
QList<ComboData> listVatTypes;
|
||||
listVatTypes
|
||||
<< ComboData(Enums::NONE, tr("None"))
|
||||
<< ComboData(Enums::HIGH, tr("High"))
|
||||
<< ComboData(Enums::FIRST_LOWER, tr("First lower"))
|
||||
<< ComboData(Enums::SECOND_LOWER, tr("Second lower"));
|
||||
registerBinding(ui->defaultVat, listVatTypes);
|
||||
|
||||
m_itemModel = new AutoTableModel<ShopItem>();
|
||||
}
|
||||
|
||||
@@ -70,7 +78,7 @@ void ShopSettingsForm::drawButtons()
|
||||
btn->setObjectName(QString::number(i) + "_" + QString::number(j));
|
||||
btn->setAcceptDrops(true);
|
||||
|
||||
if (m_btnMap[btn->objectName()] != NULL)
|
||||
if (m_btnMap[btn->objectName()] != nullptr)
|
||||
{
|
||||
btn->setText(m_btnMap[btn->objectName()]->shortName());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user