tripstorekrabi-shared 1.16.6 → 1.16.8

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 (3) hide show
  1. package/booking.js +1 -1
  2. package/package.json +1 -1
  3. package/utils.js +4 -4
package/booking.js CHANGED
@@ -93,7 +93,7 @@ export function addBookingFromInvoice(
93
93
  customerBookingStatus: 'Pending',
94
94
  operatorBookingStatus: 'Pending',
95
95
  sentToOperator: false,
96
- startingPointDescription: '',
96
+ startingPointDescription: item.startingPointDescription ?? "",
97
97
  pickupHotel: item.pickupHotel ?? null,
98
98
  roomNumber: item.roomNumber ?? '',
99
99
  dietary: item.dietary ?? "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tripstorekrabi-shared",
3
- "version": "1.16.6",
3
+ "version": "1.16.8",
4
4
  "description": "Shared library for Trip Store Krabi",
5
5
  "author": "Stefan Sommer <tonprince@gmail.com>",
6
6
  "repository": {
package/utils.js CHANGED
@@ -169,8 +169,8 @@ export function isHotelPickup(value) {
169
169
  return (
170
170
  (value.includes('picked up') ||
171
171
  value.includes('pickup') ||
172
- value.includes('round-trip')) &&
173
- value.includes('hotel')
172
+ value.includes('round-trip')) && (
173
+ value.includes('hotel') || value.includes("villa") || value.includes("airbnb"))
174
174
  );
175
175
  }
176
176
 
@@ -179,8 +179,8 @@ export function isHotelDropOff(value) {
179
179
  return (
180
180
  (value.includes('dropped off') ||
181
181
  value.includes('drop-off') ||
182
- value.includes('transfer')) &&
183
- value.includes('hotel')
182
+ value.includes('transfer')) && (
183
+ value.includes('hotel') || value.includes("villa") || value.includes("airbnb"))
184
184
  );
185
185
  }
186
186