tripstorekrabi-shared 1.16.4 → 1.16.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/price.js +1 -1
- package/utils.js +10 -14
package/package.json
CHANGED
package/price.js
CHANGED
package/utils.js
CHANGED
|
@@ -359,15 +359,7 @@ export function getBookingSummary(booking, options = {}) {
|
|
|
359
359
|
', ' +
|
|
360
360
|
booking.leadTraveller;
|
|
361
361
|
|
|
362
|
-
|
|
363
|
-
summary +=
|
|
364
|
-
', ' +
|
|
365
|
-
(isHotelPickup(booking.startingPointDescription) && booking.noHotelYet
|
|
366
|
-
? 'NO HOTEL YET'
|
|
367
|
-
: booking.startingPointDescription);
|
|
368
|
-
} else if (booking.noHotelYet) {
|
|
369
|
-
summary += ', NO HOTEL YET';
|
|
370
|
-
}
|
|
362
|
+
summary += ', ' + booking.startingPointDescription;
|
|
371
363
|
|
|
372
364
|
let hasHotelPickup = isHotelPickup(booking.startingPointDescription);
|
|
373
365
|
if (hasHotelPickup && booking.roomNumber?.length > 0) {
|
|
@@ -432,13 +424,17 @@ export function getItemSummary(item, product) {
|
|
|
432
424
|
item.startingPointId
|
|
433
425
|
).value;
|
|
434
426
|
if (isHotelPickup(startingPointDescription)) {
|
|
435
|
-
if (item.
|
|
427
|
+
if (item.startingPointDescription === NO_PICKUP_HOTEL_YET) {
|
|
436
428
|
summary += 'Hotel pickup (hotel not known yet)';
|
|
437
429
|
} else {
|
|
438
|
-
summary += 'Hotel pickup from ' + item.pickupHotel;
|
|
439
|
-
|
|
440
|
-
if (item.roomNumber) {
|
|
441
|
-
|
|
430
|
+
summary += 'Hotel pickup from the lobby of ' + item.pickupHotel;
|
|
431
|
+
|
|
432
|
+
if (item.roomNumber?.length > 0) {
|
|
433
|
+
if (ROOM_NUMBER_LIST.includes(item.roomNumber)) {
|
|
434
|
+
summary += ` (${item.roomNumber})`;
|
|
435
|
+
} else {
|
|
436
|
+
summary += ` (room ${item.roomNumber})`;
|
|
437
|
+
}
|
|
442
438
|
}
|
|
443
439
|
}
|
|
444
440
|
} else {
|