Implemented vat rate settings for Camp module.
This commit is contained in:
@@ -22,9 +22,14 @@ void CampSeller::prepareItem()
|
||||
wizard->show();
|
||||
|
||||
connect(wizard, &QDialog::accepted, [this, data](){
|
||||
SettingsService settSrv("CAMP");
|
||||
CampSettingsPtr settings = settSrv.loadSettings<CampSettings>();
|
||||
CampShopItemPtr item(new CampShopItem);
|
||||
|
||||
item->setUnitPrice(data->totalPrice());
|
||||
item->setId(data->id());
|
||||
item->setVatType(settings->vatType());
|
||||
|
||||
emit itemPrepared(item, 1);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user