feat: additional distinction in pax regarding undersubscription costs

closes #8698nahva
This commit is contained in:
Björn Fromme
2025-04-22 10:20:49 +02:00
parent 08c1147336
commit 24685b6cb8
3 changed files with 48 additions and 13 deletions
@@ -294,14 +294,22 @@ export default {
type: Number,
default: 2.9,
},
undersubscriptionEur: {
undersubscription30Eur: {
type: Number,
default: 5.0,
},
undersubscriptionChf: {
undersubscription30Chf: {
type: Number,
default: 5.0,
},
undersubscription40Eur: {
type: Number,
default: 2.5,
},
undersubscription40Chf: {
type: Number,
default: 2.5,
},
countryCode: {
type: String,
required: true
@@ -530,9 +538,12 @@ export default {
}
}
}
if (this.selectedBoard && this.selectedPax < 50) {
undersubscription.EUR = this.selectedPax * this.undersubscriptionEur * this.selectedRange.length
undersubscription.CHF = this.selectedPax * this.undersubscriptionChf * this.selectedRange.length
if (this.selectedBoard && this.selectedPax < 40) {
undersubscription.EUR = this.selectedPax * this.undersubscription30Eur * this.selectedRange.length
undersubscription.CHF = this.selectedPax * this.undersubscription30Chf * this.selectedRange.length
} else if (this.selectedBoard && this.selectedPax < 50) {
undersubscription.EUR = this.selectedPax * this.undersubscription40Eur * this.selectedRange.length
undersubscription.CHF = this.selectedPax * this.undersubscription40Chf * this.selectedRange.length
}
return {base, additional, undersubscription}