Merged in feat/SW-1355-reward-night-booking-track-3 (pull request #1913)
feat: SW-1355 Updated tracking to localPrice instead of requestedPrice Approved-by: Michael Zetterberg
This commit is contained in:
@@ -254,9 +254,7 @@ function calcTotalRoomPrice(rooms: Room[], isMember: boolean) {
|
|||||||
// When it comes special rates, only redemption has additional price and that should be added
|
// When it comes special rates, only redemption has additional price and that should be added
|
||||||
// other special rates like voucher, corporateCheck should be added as 0 according to Priyanka
|
// other special rates like voucher, corporateCheck should be added as 0 according to Priyanka
|
||||||
if ("redemption" in room.roomRate) {
|
if ("redemption" in room.roomRate) {
|
||||||
return (
|
return room.roomRate.redemption.localPrice?.additionalPricePerStay ?? 0
|
||||||
room.roomRate.redemption.requestedPrice?.additionalPricePerStay ?? 0
|
|
||||||
)
|
|
||||||
} else if (
|
} else if (
|
||||||
"corporateCheck" in room.roomRate ||
|
"corporateCheck" in room.roomRate ||
|
||||||
"voucher" in room.roomRate
|
"voucher" in room.roomRate
|
||||||
|
|||||||
Reference in New Issue
Block a user