From f4c31449c3900e67cc5cbdf17b535cf12f5615b3 Mon Sep 17 00:00:00 2001 From: Hrishikesh Vaipurkar Date: Mon, 12 May 2025 07:05:31 +0000 Subject: [PATCH] Merged in feat/SW-2612-mystay-breakfast-buffet-u (pull request #2034) feat: SW-2612 Display value of breakfast multiplied with adults and children * feat: SW-2612 Display value of breakfast multiplied with adults and children Approved-by: Niclas Edenvin --- .../AddAncillaryFlowModal/PriceDetails/index.tsx | 4 ++-- .../AddAncillaryFlowModal/Steps/SelectQuantityStep/index.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/PriceDetails/index.tsx b/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/PriceDetails/index.tsx index c03696851..cc87b8e2f 100644 --- a/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/PriceDetails/index.tsx +++ b/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/PriceDetails/index.tsx @@ -77,7 +77,7 @@ export default function PriceDetails({ title: `${selectedAncillary.title} / ${intl.formatMessage({ defaultMessage: "Adult", })}`, - totalPrice: breakfastData.priceAdult, + totalPrice: breakfastData.priceAdult * breakfastData.nrOfAdults, currency: breakfastData.currency, quantityWithCard: breakfastData.nrOfAdults * breakfastData.nrOfNights, }, @@ -88,7 +88,7 @@ export default function PriceDetails({ title: `${selectedAncillary.title} / ${intl.formatMessage({ defaultMessage: "Children", })} 4-12`, - totalPrice: breakfastData.priceChild, + totalPrice: breakfastData.priceChild * breakfastData.nrOfPayingChildren, currency: breakfastData.currency, quantityWithCard: breakfastData.nrOfPayingChildren * breakfastData.nrOfNights, diff --git a/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/Steps/SelectQuantityStep/index.tsx b/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/Steps/SelectQuantityStep/index.tsx index 9c3b40b7a..024390be8 100644 --- a/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/Steps/SelectQuantityStep/index.tsx +++ b/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/Steps/SelectQuantityStep/index.tsx @@ -160,7 +160,7 @@ function BreakfastInfo() {
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */} - {`${breakfastData.priceAdult} ${breakfastData.currency}`} + {`${breakfastData.priceAdult * breakfastData.nrOfAdults} ${breakfastData.currency}`}
@@ -179,7 +179,7 @@ function BreakfastInfo() {
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */} - {`${breakfastData.priceChild} ${breakfastData.currency}`} + {`${breakfastData.priceChild * breakfastData.nrOfPayingChildren} ${breakfastData.currency}`}