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:
@@ -78,6 +78,12 @@ export default function SummaryUI({
|
|||||||
|
|
||||||
const roomOneMemberPrice = getMemberPrice(rooms[0].room.roomRate)
|
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 (
|
return (
|
||||||
<section className={styles.summary}>
|
<section className={styles.summary}>
|
||||||
<header className={styles.header}>
|
<header className={styles.header}>
|
||||||
@@ -408,7 +414,7 @@ export default function SummaryUI({
|
|||||||
)}
|
)}
|
||||||
</Caption>
|
</Caption>
|
||||||
) : null}
|
) : null}
|
||||||
{totalPrice.requested && (
|
{totalPrice.requested && !isSpecialRate && (
|
||||||
<Caption color="uiTextMediumContrast">
|
<Caption color="uiTextMediumContrast">
|
||||||
{intl.formatMessage(
|
{intl.formatMessage(
|
||||||
{ id: "Approx. {value}" },
|
{ id: "Approx. {value}" },
|
||||||
|
|||||||
@@ -437,6 +437,8 @@ export function calcTotalPrice(
|
|||||||
breakfastLocalPrice * room.adults * nights,
|
breakfastLocalPrice * room.adults * nights,
|
||||||
roomFeaturesTotal?.local ?? 0
|
roomFeaturesTotal?.local ?? 0
|
||||||
),
|
),
|
||||||
|
additionalPriceCurrency:
|
||||||
|
roomPrice.perStay.local.additionalPriceCurrency,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user