Added setting for default VAT type on Direct sell dialog. Fixed some compiler warnings.
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
#include "directsaleform.h"
|
||||
#include "ui_directsaleform.h"
|
||||
|
||||
DirectSaleForm::DirectSaleForm(QWidget *parent) :
|
||||
DirectSaleForm::DirectSaleForm(QWidget *parent, Enums::VatType defaultVat) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::DirectSaleForm)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
m_shopItem = QSharedPointer<DirectSaleItem>(new DirectSaleItem);
|
||||
m_shopItem->setVatType(defaultVat);
|
||||
|
||||
m_binder.setData(m_shopItem.data());
|
||||
m_binder.registerBinding(ui->name);
|
||||
|
||||
Reference in New Issue
Block a user