tripstorekrabi-shared 1.19.2 → 1.19.4
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/booking.js +10 -8
- package/package.json +1 -1
package/booking.js
CHANGED
|
@@ -379,7 +379,9 @@ export function createTodos(booking, product) {
|
|
|
379
379
|
if (booking.startingPointDescription === NO_PICKUP_HOTEL_YET) {
|
|
380
380
|
todos.pickupHotel = "missing";
|
|
381
381
|
}
|
|
382
|
+
|
|
382
383
|
if (
|
|
384
|
+
todos.pickupHotel !== "missing" &&
|
|
383
385
|
booking.roomNumber !== NO_ROOM &&
|
|
384
386
|
booking.roomNumber !== IN_HOUSE &&
|
|
385
387
|
booking.roomNumber !== STAY_NEARBY &&
|
|
@@ -420,33 +422,33 @@ export function createTodos(booking, product) {
|
|
|
420
422
|
|
|
421
423
|
if (isAirportPickup(booking.startingPointDescription)) {
|
|
422
424
|
if (!booking.flight) {
|
|
423
|
-
todos.
|
|
425
|
+
todos.inboundFlightDetails = "missing";
|
|
424
426
|
} else if (!booking.flightConfirmed) {
|
|
425
|
-
todos.
|
|
427
|
+
todos.inboundFlightDetails = "sendToOperator";
|
|
426
428
|
}
|
|
427
429
|
}
|
|
428
430
|
|
|
429
431
|
if (isAirportDropOff(booking.productDescription)) {
|
|
430
432
|
if (!booking.flight) {
|
|
431
|
-
todos.
|
|
433
|
+
todos.outboundFlightDetails = "missing";
|
|
432
434
|
} else if (!booking.flightConfirmed) {
|
|
433
|
-
todos.
|
|
435
|
+
todos.outboundFlightDetails = "sendToOperator";
|
|
434
436
|
}
|
|
435
437
|
}
|
|
436
438
|
|
|
437
439
|
if (isTrainStation(booking.startingPointDescription)) {
|
|
438
440
|
if (!booking.train) {
|
|
439
|
-
todos.
|
|
441
|
+
todos.inboundTrainDetails = "missing";
|
|
440
442
|
} else if (!booking.trainConfirmed) {
|
|
441
|
-
todos.
|
|
443
|
+
todos.inboundTrainDetails = "sendToOperator";
|
|
442
444
|
}
|
|
443
445
|
}
|
|
444
446
|
|
|
445
447
|
if (isTrainStation(booking.productDescription)) {
|
|
446
448
|
if (!booking.train) {
|
|
447
|
-
todos.
|
|
449
|
+
todos.outboundTrainDetails = "missing";
|
|
448
450
|
} else if (!booking.trainConfirmed) {
|
|
449
|
-
todos.
|
|
451
|
+
todos.outboundTrainDetails = "sendToOperator";
|
|
450
452
|
}
|
|
451
453
|
}
|
|
452
454
|
}
|