tripstorekrabi-shared 1.15.2 → 1.15.3
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 +7 -4
- package/package.json +1 -1
package/booking.js
CHANGED
|
@@ -4,7 +4,7 @@ import utc from 'dayjs/plugin/utc.js';
|
|
|
4
4
|
import timezone from 'dayjs/plugin/timezone.js';
|
|
5
5
|
import { PAY_ON_TOUR, calculateTotalOperatorPrice } from './price.js';
|
|
6
6
|
import { nanoid } from 'nanoid';
|
|
7
|
-
import { isHotelPickup
|
|
7
|
+
import { isHotelPickup } from './utils.js';
|
|
8
8
|
|
|
9
9
|
dayjs.extend(advancedFormat);
|
|
10
10
|
dayjs.extend(utc);
|
|
@@ -279,11 +279,14 @@ export function getStartingPointMessage(booking, product) {
|
|
|
279
279
|
text += ' on the ' + date;
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
|
|
283
|
-
|
|
282
|
+
text += ". ";
|
|
283
|
+
|
|
284
|
+
let transferTo = "with transfer to";
|
|
285
|
+
if (booking.productDescription.includes(transferTo)) {
|
|
286
|
+
text += "Your booking includes a " + booking.productDescription.substring(booking.productDescription.indexOf(transferTo)).replace(transferTo, "transfer to") + '. ';
|
|
284
287
|
}
|
|
285
288
|
|
|
286
|
-
text += '
|
|
289
|
+
text += 'Please watch out for the staff of ' + booking.operator + '.';
|
|
287
290
|
|
|
288
291
|
if (booking.googleMapLocation?.length > 0) {
|
|
289
292
|
text += `\n\n${isHotelPickup(booking.startingPointDescription)
|