Added setting for default VAT type on Direct sell dialog. Fixed some compiler warnings.

This commit is contained in:
2020-07-01 22:09:40 +02:00
parent 43e95eeb6f
commit ad9a66ab32
7 changed files with 52 additions and 11 deletions
+9 -1
View File
@@ -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());
}