From f633ad7fcc1729262f6a3d745b9197e643385241 Mon Sep 17 00:00:00 2001 From: Hrishikesh Vaipurkar Date: Mon, 24 Mar 2025 12:58:57 +0000 Subject: [PATCH] Merged in feat/SW-1308-booking-codes-track-b (pull request #1612) feat: SW-1308 Updated total price and hid approx price * feat: SW-1308 Updated total price and hid approx price * feat: SW-1308 Updated typo Approved-by: Arvid Norlin --- .../HotelReservation/EnterDetails/Summary/UI/index.tsx | 8 +++++++- apps/scandic-web/stores/enter-details/helpers.ts | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/scandic-web/components/HotelReservation/EnterDetails/Summary/UI/index.tsx b/apps/scandic-web/components/HotelReservation/EnterDetails/Summary/UI/index.tsx index 603add904..e1f5df2fa 100644 --- a/apps/scandic-web/components/HotelReservation/EnterDetails/Summary/UI/index.tsx +++ b/apps/scandic-web/components/HotelReservation/EnterDetails/Summary/UI/index.tsx @@ -78,6 +78,12 @@ export default function SummaryUI({ const roomOneMemberPrice = getMemberPrice(rooms[0].room.roomRate) + // In case of Redemption, voucher and Corporate cheque do not show approx price + const isSpecialRate = + rooms[0].room.roomRate.chequeRate || + rooms[0].room.roomRate.redemptionRate || + rooms[0].room.roomRate.voucherRate + return (
@@ -408,7 +414,7 @@ export default function SummaryUI({ )} ) : null} - {totalPrice.requested && ( + {totalPrice.requested && !isSpecialRate && ( {intl.formatMessage( { id: "Approx. {value}" }, diff --git a/apps/scandic-web/stores/enter-details/helpers.ts b/apps/scandic-web/stores/enter-details/helpers.ts index 9b2133286..6bd47f032 100644 --- a/apps/scandic-web/stores/enter-details/helpers.ts +++ b/apps/scandic-web/stores/enter-details/helpers.ts @@ -437,6 +437,8 @@ export function calcTotalPrice( breakfastLocalPrice * room.adults * nights, roomFeaturesTotal?.local ?? 0 ), + additionalPriceCurrency: + roomPrice.perStay.local.additionalPriceCurrency, }, }