Implemented vat rate settings for Camp module.
This commit is contained in:
@@ -110,10 +110,13 @@ void CampGrid::addToVoucher(CampDataPtr data)
|
||||
return;
|
||||
}
|
||||
|
||||
SettingsService settSrv("CAMP");
|
||||
CampSettingsPtr settings = settSrv.loadSettings<CampSettings>();
|
||||
CampShopItemPtr campItem(new CampShopItem);
|
||||
|
||||
campItem->setId(data->id());
|
||||
campItem->setUnitPrice(data->totalPrice());
|
||||
campItem->setVatType(settings->vatType());
|
||||
|
||||
ShopService shopSrv;
|
||||
VoucherPtr voucher = shopSrv.createVoucher();
|
||||
|
||||
Reference in New Issue
Block a user