Merged in fix/SW-2555-bookings-voucher-unable-date (pull request #2305)
Fix: SW-2555 Fixed change date for voucher bookings * Fix: SW-2555 Fixed change date for voucher bookings Approved-by: Tobias Johansson
This commit is contained in:
@@ -74,7 +74,7 @@ export default function Steps({ closeModal }: ChangeDatesStepsProps) {
|
|||||||
setNewPrice(formatPrice(intl, pricePerStay + extraPrice, currency))
|
setNewPrice(formatPrice(intl, pricePerStay + extraPrice, currency))
|
||||||
} else if (
|
} else if (
|
||||||
"corporateCheque" in data.product &&
|
"corporateCheque" in data.product &&
|
||||||
data.product.corporateCheque.localPrice.additionalPricePerStay
|
data.product.corporateCheque.localPrice.numberOfCheques
|
||||||
) {
|
) {
|
||||||
const { additionalPricePerStay, currency, numberOfCheques } =
|
const { additionalPricePerStay, currency, numberOfCheques } =
|
||||||
data.product.corporateCheque.localPrice
|
data.product.corporateCheque.localPrice
|
||||||
@@ -87,6 +87,12 @@ export default function Steps({ closeModal }: ChangeDatesStepsProps) {
|
|||||||
currency?.toString() ?? pkgsSum.currency ?? currencyCode
|
currency?.toString() ?? pkgsSum.currency ?? currencyCode
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
} else if (
|
||||||
|
"voucher" in data.product &&
|
||||||
|
data.product.voucher.numberOfVouchers
|
||||||
|
) {
|
||||||
|
const { numberOfVouchers } = data.product.voucher
|
||||||
|
setNewPrice(formatPrice(intl, numberOfVouchers, CurrencyEnum.Voucher))
|
||||||
} else if (
|
} else if (
|
||||||
"redemption" in data.product &&
|
"redemption" in data.product &&
|
||||||
data.product.redemption.localPrice.additionalPricePerStay
|
data.product.redemption.localPrice.additionalPricePerStay
|
||||||
|
|||||||
Reference in New Issue
Block a user