feat: additional distinction in pax regarding undersubscription costs
closes #8698nahva
This commit is contained in:
+16
-5
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user