wip: calculator adjustments
This commit is contained in:
+15
-3
@@ -114,8 +114,9 @@
|
||||
</tr>
|
||||
<tr class="odd:bg-zinc-100">
|
||||
<th class="text-left py-2">Gesamtpreis</th>
|
||||
<td><strong>{{ formatCurrency(priceTotal) }}</strong><br><small>zzgl. vor Ort zu entrichtender
|
||||
Ortstaxe</small></td>
|
||||
<td><strong>{{ formatCurrency(priceTotal) }}</strong>
|
||||
<br><small>zzgl. vor Ort zu entrichtender Ortstaxe</small>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -299,6 +300,14 @@ export default {
|
||||
type: Number,
|
||||
default: 5.0,
|
||||
},
|
||||
undersubscriptionExtEur: {
|
||||
type: Number,
|
||||
default: 2.5,
|
||||
},
|
||||
undersubscriptionExtChf: {
|
||||
type: Number,
|
||||
default: 2.5,
|
||||
},
|
||||
countryCode: {
|
||||
type: String,
|
||||
required: true
|
||||
@@ -505,9 +514,12 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.selectedBoard && this.selectedPax < 50) {
|
||||
if (this.selectedBoard && this.selectedPax < 40) {
|
||||
undersubscription.EUR = this.selectedPax * this.undersubscriptionEur * this.selectedRange.length
|
||||
undersubscription.CHF = this.selectedPax * this.undersubscriptionChf * this.selectedRange.length
|
||||
} else if (this.selectedBoard && this.selectedPax < 50) {
|
||||
undersubscription.EUR = this.selectedPax * this.undersubscriptionExtEur * this.selectedRange.length
|
||||
undersubscription.CHF = this.selectedPax * this.undersubscriptionExtChf * this.selectedRange.length
|
||||
}
|
||||
|
||||
return {base, additional, undersubscription}
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
running-costs-factor-chf="{runningCostsCHF}"
|
||||
undersubscription-eur="{undersubscriptionEUR}"
|
||||
undersubscription-chf="{undersubscriptionCHF}"
|
||||
undersubscription-ext-eur="{undersubscriptionExtEUR}"
|
||||
undersubscription-ext-chf="{undersubscriptionExtCHF}"
|
||||
country-code="{countryCode}"
|
||||
endpoint="{ep:uri.ajax(action: 'processForm', controller: 'AjaxGroupsPrice', pageUid: settings.defaultAjaxUid, arguments: '{hotel: hotel}')}"
|
||||
loader-uri="{f:uri.image(src: 'EXT:ep_theme/Resources/Public/images/ajax-loader-white.gif')}"
|
||||
|
||||
Reference in New Issue
Block a user