diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/GroupsPriceCalculator.vue b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/GroupsPriceCalculator.vue index 74755215..4d546e31 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/GroupsPriceCalculator.vue +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/GroupsPriceCalculator.vue @@ -14,7 +14,7 @@ @@ -22,7 +22,7 @@
Erst ab 30 Personen buchbar. @@ -104,7 +104,7 @@
- Vielen Dank für Ihre Anfrage. Wir werden Sie schnellstmöglich bearbeiten. + Vielen Dank für Ihre Anfrage. Wir werden diese schnellstmöglich bearbeiten.
@@ -123,8 +123,6 @@ import axios from 'axios'; export default { - components: { - }, props: { loaderUri: { type: String, @@ -170,7 +168,20 @@ if (0 === value) { return '-'; } - return parseFloat(value).toFixed(2).replace(/\./, ',') + '€'; + return parseFloat(value).toFixed(2).replace(/\./, ',') + ' €'; + }, + formatOptionPriceType (option) { + if (2 === option.type) { + return ' ('+this.formatCurrency(option.price)+' pro Person)'; + } + if (3 === option.type) { + return ' ('+this.formatCurrency(option.price)+' pro Nacht)'; + } + if (4 === option.type) { + return ' ('+this.formatCurrency(option.price)+' pro Person und Nacht)'; + } + + return ' ('+this.formatCurrency(option.price)+')'; }, initSelectableRanges () { let enabledDates = [];