feat: remove discount option

addresses #8698d0h7c
This commit is contained in:
Björn Fromme
2025-03-24 16:00:29 +01:00
parent 4c97f71d01
commit c3cd1dc872
2 changed files with 2 additions and 14 deletions
@@ -29,7 +29,7 @@ return [
],
],
'palettes' => [
'priceconfig' => ['showitem' => 'price, price_chf, type, ignore_with_board'],
'priceconfig' => ['showitem' => 'price, price_chf, type'],
],
'columns' => [
@@ -95,7 +95,7 @@
<tr class="odd:bg-zinc-100"
v-for="selectedOption in selectedOptions">
<th class="text-left py-2">{{ selectedOption.title }}</th>
<td>{{ formatCurrency(optionPrice(selectedOption)) }}</td>
<td>{{ formatCurrency(selectedOption.price) }}</td>
</tr>
<tr class="odd:bg-zinc-100"
v-if="priceBoard.EUR > 0 || priceBoard.CHF > 0">
@@ -381,14 +381,6 @@ export default {
return ` (${this.formatCurrency(option.price)})`
},
optionPrice(option) {
let factor = (true === option.ignoreWithBoard && this.selectedBoard) ? 0 : 1
return {
EUR: option.price.EUR * factor,
CHF: option.price.CHF * factor,
}
},
initSelectableRanges() {
let enabledDates = [];
for (let config of this.configs) {
@@ -525,10 +517,6 @@ export default {
for (let option of this.selectedOptions) {
let optionPriceEUR = option.price.EUR
let optionPriceCHF = option.price.CHF
if (true === option.ignoreWithBoard && this.selectedBoard) {
optionPriceEUR = 0
optionPriceCHF = 0
}
if (1 === option.type) {
price.EUR += optionPriceEUR;
price.CHF += optionPriceCHF;