wip: calculator adjustments
This commit is contained in:
@@ -54,6 +54,8 @@ class GroupsPriceController extends ActionController
|
|||||||
$this->view->assign('runningCostsCHF', $this->settings['runningCostsCHF']);
|
$this->view->assign('runningCostsCHF', $this->settings['runningCostsCHF']);
|
||||||
$this->view->assign('undersubscriptionEUR', $this->settings['undersubscriptionEUR']);
|
$this->view->assign('undersubscriptionEUR', $this->settings['undersubscriptionEUR']);
|
||||||
$this->view->assign('undersubscriptionCHF', $this->settings['undersubscriptionCHF']);
|
$this->view->assign('undersubscriptionCHF', $this->settings['undersubscriptionCHF']);
|
||||||
|
$this->view->assign('undersubscriptionExtEUR', $this->settings['undersubscriptionExtEUR']);
|
||||||
|
$this->view->assign('undersubscriptionExtCHF', $this->settings['undersubscriptionExtCHF']);
|
||||||
$this->view->assign('countryCode', $hotel->getCountry()->getCode());
|
$this->view->assign('countryCode', $hotel->getCountry()->getCode());
|
||||||
$this->view->assign('configs', json_encode(array_values($configs), JSON_HEX_APOS));
|
$this->view->assign('configs', json_encode(array_values($configs), JSON_HEX_APOS));
|
||||||
$this->view->assign('boards', json_encode($hotel->getGroupsPriceBoards()->toArray(), JSON_HEX_APOS));
|
$this->view->assign('boards', json_encode($hotel->getGroupsPriceBoards()->toArray(), JSON_HEX_APOS));
|
||||||
|
|||||||
+24
-2
@@ -35,7 +35,7 @@
|
|||||||
<settings.undersubscriptionEUR>
|
<settings.undersubscriptionEUR>
|
||||||
<TCEforms>
|
<TCEforms>
|
||||||
<exclude>0</exclude>
|
<exclude>0</exclude>
|
||||||
<label>Unterbelegung EUR</label>
|
<label>Unterbelegung 30-39 Personen EUR</label>
|
||||||
<config>
|
<config>
|
||||||
<type>input</type>
|
<type>input</type>
|
||||||
<default>5.0</default>
|
<default>5.0</default>
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
<settings.undersubscriptionCHF>
|
<settings.undersubscriptionCHF>
|
||||||
<TCEforms>
|
<TCEforms>
|
||||||
<exclude>0</exclude>
|
<exclude>0</exclude>
|
||||||
<label>Unterbelegung CHF</label>
|
<label>Unterbelegung 30-39 Personen CHF</label>
|
||||||
<config>
|
<config>
|
||||||
<type>input</type>
|
<type>input</type>
|
||||||
<default>5.0</default>
|
<default>5.0</default>
|
||||||
@@ -54,6 +54,28 @@
|
|||||||
</config>
|
</config>
|
||||||
</TCEforms>
|
</TCEforms>
|
||||||
</settings.undersubscriptionCHF>
|
</settings.undersubscriptionCHF>
|
||||||
|
<settings.undersubscriptionExtEUR>
|
||||||
|
<TCEforms>
|
||||||
|
<exclude>0</exclude>
|
||||||
|
<label>Unterbelegung 40-49 Personen EUR</label>
|
||||||
|
<config>
|
||||||
|
<type>input</type>
|
||||||
|
<default>2.5</default>
|
||||||
|
<eval>double2,required</eval>
|
||||||
|
</config>
|
||||||
|
</TCEforms>
|
||||||
|
</settings.undersubscriptionExtEUR>
|
||||||
|
<settings.undersubscriptionExtCHF>
|
||||||
|
<TCEforms>
|
||||||
|
<exclude>0</exclude>
|
||||||
|
<label>Unterbelegung 40-49 Personen CHF</label>
|
||||||
|
<config>
|
||||||
|
<type>input</type>
|
||||||
|
<default>2.5</default>
|
||||||
|
<eval>double2,required</eval>
|
||||||
|
</config>
|
||||||
|
</TCEforms>
|
||||||
|
</settings.undersubscriptionExtCHF>
|
||||||
</el>
|
</el>
|
||||||
</ROOT>
|
</ROOT>
|
||||||
</sDEF>
|
</sDEF>
|
||||||
|
|||||||
+15
-3
@@ -114,8 +114,9 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr class="odd:bg-zinc-100">
|
<tr class="odd:bg-zinc-100">
|
||||||
<th class="text-left py-2">Gesamtpreis</th>
|
<th class="text-left py-2">Gesamtpreis</th>
|
||||||
<td><strong>{{ formatCurrency(priceTotal) }}</strong><br><small>zzgl. vor Ort zu entrichtender
|
<td><strong>{{ formatCurrency(priceTotal) }}</strong>
|
||||||
Ortstaxe</small></td>
|
<br><small>zzgl. vor Ort zu entrichtender Ortstaxe</small>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -299,6 +300,14 @@ export default {
|
|||||||
type: Number,
|
type: Number,
|
||||||
default: 5.0,
|
default: 5.0,
|
||||||
},
|
},
|
||||||
|
undersubscriptionExtEur: {
|
||||||
|
type: Number,
|
||||||
|
default: 2.5,
|
||||||
|
},
|
||||||
|
undersubscriptionExtChf: {
|
||||||
|
type: Number,
|
||||||
|
default: 2.5,
|
||||||
|
},
|
||||||
countryCode: {
|
countryCode: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true
|
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.EUR = this.selectedPax * this.undersubscriptionEur * this.selectedRange.length
|
||||||
undersubscription.CHF = this.selectedPax * this.undersubscriptionChf * 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}
|
return {base, additional, undersubscription}
|
||||||
|
|||||||
@@ -17,6 +17,8 @@
|
|||||||
running-costs-factor-chf="{runningCostsCHF}"
|
running-costs-factor-chf="{runningCostsCHF}"
|
||||||
undersubscription-eur="{undersubscriptionEUR}"
|
undersubscription-eur="{undersubscriptionEUR}"
|
||||||
undersubscription-chf="{undersubscriptionCHF}"
|
undersubscription-chf="{undersubscriptionCHF}"
|
||||||
|
undersubscription-ext-eur="{undersubscriptionExtEUR}"
|
||||||
|
undersubscription-ext-chf="{undersubscriptionExtCHF}"
|
||||||
country-code="{countryCode}"
|
country-code="{countryCode}"
|
||||||
endpoint="{ep:uri.ajax(action: 'processForm', controller: 'AjaxGroupsPrice', pageUid: settings.defaultAjaxUid, arguments: '{hotel: hotel}')}"
|
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')}"
|
loader-uri="{f:uri.image(src: 'EXT:ep_theme/Resources/Public/images/ajax-loader-white.gif')}"
|
||||||
|
|||||||
Reference in New Issue
Block a user