From 2a7c9290dd663ed383d58ffe99c55031a5bd1d5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Tue, 15 Jun 2021 18:47:08 +0200 Subject: [PATCH] Adopt changes in MyE&P --- .../Resources/Private/Assets/js/myep/BookingEdit.vue | 11 +++++++++++ .../Assets/js/myep/components/ContingentsOverview.vue | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/BookingEdit.vue b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/BookingEdit.vue index 256199e9..5c802f7e 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/BookingEdit.vue +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/BookingEdit.vue @@ -101,6 +101,14 @@ Beförderung {{ getSelectedServicesLabels(participant.transportationIds, services.transportation) }} + + Zuschläge + +

+ {{ surcharge.priceSingle.toFixed(2) }} € ({{ surcharge.name }}) +

+ + Gesamtpreis {{ calculateSinglePrice(participant).toFixed(2) }} € @@ -307,6 +315,9 @@ if ('S' === participant.data.status && participant.data.cancellationFee) { singlePrice += participant.data.cancellationFee; } + for (let surcharge of participant.surcharges) { + singlePrice += surcharge.priceSingle + } return singlePrice; }, onAccommodationSelected (accommodation, index) { diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/components/ContingentsOverview.vue b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/components/ContingentsOverview.vue index 6d08e765..19a2d639 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/components/ContingentsOverview.vue +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/components/ContingentsOverview.vue @@ -25,7 +25,7 @@ }, props: { contingents: { - type: Object, + type: Array, required: true } }