Merged in fix/SW-2440-breakfast-tracking (pull request #1967)
fix(SW-2440): correct total price * fix(SW-2440): correct total price * Merge branch 'fix/SW-2440-breakfast-tracking' of bitbucket.org:scandic-swap/web into fix/SW-2440-breakfast-tracking * fix(SW-2440): multiply by number of nights for breakfast tracking Approved-by: Niclas Edenvin
This commit is contained in:
committed by
Bianca Widstam
parent
4d41d4fd92
commit
8bff7f2cf2
@@ -223,9 +223,13 @@ export function getTracking(
|
|||||||
return {
|
return {
|
||||||
hotelId: hotel.operaId,
|
hotelId: hotel.operaId,
|
||||||
productId: breakfast.code,
|
productId: breakfast.code,
|
||||||
productUnits: adults,
|
productUnits:
|
||||||
|
adults * differenceInCalendarDays(departureDate, arrivalDate),
|
||||||
productPoints: 0,
|
productPoints: 0,
|
||||||
productPrice: breakfast.localPrice.totalPrice,
|
productPrice:
|
||||||
|
breakfast.localPrice.price *
|
||||||
|
adults *
|
||||||
|
differenceInCalendarDays(departureDate, arrivalDate),
|
||||||
productType: "food",
|
productType: "food",
|
||||||
productName: breakfast.description,
|
productName: breakfast.description,
|
||||||
productCategory: breakfast.packageType,
|
productCategory: breakfast.packageType,
|
||||||
|
|||||||
Reference in New Issue
Block a user