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
This commit is contained in:
Hrishikesh Vaipurkar
2025-03-24 12:58:57 +00:00
parent 348ae53c1d
commit f633ad7fcc
2 changed files with 9 additions and 1 deletions

View File

@@ -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 (
<section className={styles.summary}>
<header className={styles.header}>
@@ -408,7 +414,7 @@ export default function SummaryUI({
)}
</Caption>
) : null}
{totalPrice.requested && (
{totalPrice.requested && !isSpecialRate && (
<Caption color="uiTextMediumContrast">
{intl.formatMessage(
{ id: "Approx. {value}" },

View File

@@ -437,6 +437,8 @@ export function calcTotalPrice(
breakfastLocalPrice * room.adults * nights,
roomFeaturesTotal?.local ?? 0
),
additionalPriceCurrency:
roomPrice.perStay.local.additionalPriceCurrency,
},
}