Merged in fix/SW-2079-update-confirmation-page-summ (pull request #1774)
fix: SW-2079 Fixed regular room price display confirmation page * fix: SW-2079 Fixed regular room price display confirmation page Approved-by: Simon.Emanuelsson
This commit is contained in:
@@ -173,7 +173,7 @@ export default function PriceDetailsModal() {
|
||||
<Row
|
||||
bold
|
||||
label={intl.formatMessage({ id: "Room charge" })}
|
||||
value={room.formattedTotalCost}
|
||||
value={room.formattedRoomCost}
|
||||
/>
|
||||
</TableSection>
|
||||
|
||||
|
||||
@@ -53,13 +53,13 @@ export default function ReceiptRoom({
|
||||
{room.rateDefinition.isMemberRate ? (
|
||||
<div className={styles.memberPrice}>
|
||||
<Typography variant="Body/Paragraph/mdRegular">
|
||||
<p className={styles.red}>{room.formattedTotalCost}</p>
|
||||
<p className={styles.red}>{room.formattedRoomCost}</p>
|
||||
</Typography>
|
||||
</div>
|
||||
) : (
|
||||
<Typography variant="Body/Paragraph/mdRegular">
|
||||
<p className={styles.uiTextHighContrast}>
|
||||
{room.formattedTotalCost}
|
||||
{room.formattedRoomCost}
|
||||
</p>
|
||||
</Typography>
|
||||
)}
|
||||
|
||||
@@ -19,13 +19,13 @@ export function mapRoomState(
|
||||
(pkg) => pkg.code === BreakfastPackageEnum.FREE_MEMBER_BREAKFAST
|
||||
)
|
||||
|
||||
let formattedTotalCost = formatPrice(
|
||||
let formattedRoomCost = formatPrice(
|
||||
intl,
|
||||
booking.totalPrice,
|
||||
booking.roomPrice,
|
||||
booking.currencyCode
|
||||
)
|
||||
if (booking.roomPoints) {
|
||||
formattedTotalCost = formatPrice(
|
||||
formattedRoomCost = formatPrice(
|
||||
intl,
|
||||
booking.roomPoints,
|
||||
CurrencyEnum.POINTS,
|
||||
@@ -33,7 +33,7 @@ export function mapRoomState(
|
||||
booking.currencyCode
|
||||
)
|
||||
} else if (booking.cheques) {
|
||||
formattedTotalCost = formatPrice(
|
||||
formattedRoomCost = formatPrice(
|
||||
intl,
|
||||
booking.cheques,
|
||||
CurrencyEnum.CC,
|
||||
@@ -41,7 +41,7 @@ export function mapRoomState(
|
||||
booking.currencyCode
|
||||
)
|
||||
} else if (booking.vouchers) {
|
||||
formattedTotalCost = formatPrice(
|
||||
formattedRoomCost = formatPrice(
|
||||
intl,
|
||||
booking.vouchers,
|
||||
CurrencyEnum.Voucher
|
||||
@@ -58,7 +58,7 @@ export function mapRoomState(
|
||||
childBedPreferences: booking.childBedPreferences,
|
||||
confirmationNumber: booking.confirmationNumber,
|
||||
currencyCode: booking.currencyCode,
|
||||
formattedTotalCost,
|
||||
formattedRoomCost,
|
||||
fromDate: booking.checkInDate,
|
||||
name: room.name,
|
||||
packages: booking.packages,
|
||||
|
||||
@@ -22,7 +22,7 @@ export interface Room {
|
||||
fromDate: Date
|
||||
name: string
|
||||
packages: BookingConfirmation["booking"]["packages"]
|
||||
formattedTotalCost: string
|
||||
formattedRoomCost: string
|
||||
rateDefinition: BookingConfirmation["booking"]["rateDefinition"]
|
||||
roomFeatures?: PackageSchema[] | null
|
||||
roomPoints: number
|
||||
|
||||
Reference in New Issue
Block a user