feat: remove discount option
addresses #8698d0h7c
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ return [
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
'palettes' => [
|
'palettes' => [
|
||||||
'priceconfig' => ['showitem' => 'price, price_chf, type, ignore_with_board'],
|
'priceconfig' => ['showitem' => 'price, price_chf, type'],
|
||||||
],
|
],
|
||||||
'columns' => [
|
'columns' => [
|
||||||
|
|
||||||
|
|||||||
+1
-13
@@ -95,7 +95,7 @@
|
|||||||
<tr class="odd:bg-zinc-100"
|
<tr class="odd:bg-zinc-100"
|
||||||
v-for="selectedOption in selectedOptions">
|
v-for="selectedOption in selectedOptions">
|
||||||
<th class="text-left py-2">{{ selectedOption.title }}</th>
|
<th class="text-left py-2">{{ selectedOption.title }}</th>
|
||||||
<td>{{ formatCurrency(optionPrice(selectedOption)) }}</td>
|
<td>{{ formatCurrency(selectedOption.price) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="odd:bg-zinc-100"
|
<tr class="odd:bg-zinc-100"
|
||||||
v-if="priceBoard.EUR > 0 || priceBoard.CHF > 0">
|
v-if="priceBoard.EUR > 0 || priceBoard.CHF > 0">
|
||||||
@@ -381,14 +381,6 @@ export default {
|
|||||||
|
|
||||||
return ` (${this.formatCurrency(option.price)})`
|
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() {
|
initSelectableRanges() {
|
||||||
let enabledDates = [];
|
let enabledDates = [];
|
||||||
for (let config of this.configs) {
|
for (let config of this.configs) {
|
||||||
@@ -525,10 +517,6 @@ export default {
|
|||||||
for (let option of this.selectedOptions) {
|
for (let option of this.selectedOptions) {
|
||||||
let optionPriceEUR = option.price.EUR
|
let optionPriceEUR = option.price.EUR
|
||||||
let optionPriceCHF = option.price.CHF
|
let optionPriceCHF = option.price.CHF
|
||||||
if (true === option.ignoreWithBoard && this.selectedBoard) {
|
|
||||||
optionPriceEUR = 0
|
|
||||||
optionPriceCHF = 0
|
|
||||||
}
|
|
||||||
if (1 === option.type) {
|
if (1 === option.type) {
|
||||||
price.EUR += optionPriceEUR;
|
price.EUR += optionPriceEUR;
|
||||||
price.CHF += optionPriceCHF;
|
price.CHF += optionPriceCHF;
|
||||||
|
|||||||
Reference in New Issue
Block a user