tripstorekrabi-shared 1.14.6 → 1.14.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.
- package/booking.js +8 -0
- package/package.json +1 -1
package/booking.js
CHANGED
|
@@ -12,6 +12,7 @@ dayjs.extend(timezone);
|
|
|
12
12
|
export let OPERATOR_NOTE = 'Operator';
|
|
13
13
|
export let LABEL_NOTE = 'Label';
|
|
14
14
|
export let CUSTOMER_NOTE = 'Customer';
|
|
15
|
+
export let REPORT_NOTE = 'Report';
|
|
15
16
|
export const NOTES = [OPERATOR_NOTE, LABEL_NOTE, CUSTOMER_NOTE];
|
|
16
17
|
export const MAX_NOTES = 10;
|
|
17
18
|
|
|
@@ -279,6 +280,13 @@ export function getStartingPointMessage(booking, product) {
|
|
|
279
280
|
|
|
280
281
|
text += '. Please watch out for the staff of ' + booking.operator + '.';
|
|
281
282
|
|
|
283
|
+
if (booking.googleMapLocation?.length > 0) {
|
|
284
|
+
text += `\n\n${isHotelPickup(booking.startingPointDescription)
|
|
285
|
+
? 'PICKUP COORDINATES ON GOOGLE MAP'
|
|
286
|
+
: 'MEETING COORDINATES ON GOOGLE MAP'
|
|
287
|
+
}:\n${booking.googleMapLocation}`;
|
|
288
|
+
}
|
|
289
|
+
|
|
282
290
|
if (product?.whatToBring?.length > 0) {
|
|
283
291
|
text += '\n\nWHAT TO BRING: ' + product.whatToBring;
|
|
284
292
|
}
|