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.
Files changed (2) hide show
  1. package/booking.js +10 -8
  2. 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.airportPickupFlightDetails = "missing";
425
+ todos.inboundFlightDetails = "missing";
424
426
  } else if (!booking.flightConfirmed) {
425
- todos.airportPickupFlightDetails = "sendToOperator";
427
+ todos.inboundFlightDetails = "sendToOperator";
426
428
  }
427
429
  }
428
430
 
429
431
  if (isAirportDropOff(booking.productDescription)) {
430
432
  if (!booking.flight) {
431
- todos.airportDropoffFlightDetails = "missing";
433
+ todos.outboundFlightDetails = "missing";
432
434
  } else if (!booking.flightConfirmed) {
433
- todos.airportDropoffFlightDetails = "sendToOperator";
435
+ todos.outboundFlightDetails = "sendToOperator";
434
436
  }
435
437
  }
436
438
 
437
439
  if (isTrainStation(booking.startingPointDescription)) {
438
440
  if (!booking.train) {
439
- todos.railwayPickupTrainDetails = "missing";
441
+ todos.inboundTrainDetails = "missing";
440
442
  } else if (!booking.trainConfirmed) {
441
- todos.railwayPickupTrainDetails = "sendToOperator";
443
+ todos.inboundTrainDetails = "sendToOperator";
442
444
  }
443
445
  }
444
446
 
445
447
  if (isTrainStation(booking.productDescription)) {
446
448
  if (!booking.train) {
447
- todos.railwayDropoffTrainDetails = "missing";
449
+ todos.outboundTrainDetails = "missing";
448
450
  } else if (!booking.trainConfirmed) {
449
- todos.railwayDropoffTrainDetails = "sendToOperator";
451
+ todos.outboundTrainDetails = "sendToOperator";
450
452
  }
451
453
  }
452
454
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tripstorekrabi-shared",
3
- "version": "1.19.2",
3
+ "version": "1.19.4",
4
4
  "description": "Shared library for Trip Store Krabi",
5
5
  "author": "Stefan Sommer <tonprince@gmail.com>",
6
6
  "repository": {