tripstorekrabi-shared 1.18.5 → 1.18.7
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 +18 -2
- package/package.json +1 -1
package/booking.js
CHANGED
|
@@ -177,7 +177,7 @@ export function getOperatorSignature(agent, operatorName, contact) {
|
|
|
177
177
|
let signature =
|
|
178
178
|
'<br><br>Warm regards,<br><br>' +
|
|
179
179
|
(agent ? agent + ' - ' : '') +
|
|
180
|
-
operatorName;
|
|
180
|
+
(operatorName === "Siam Adventure World" ? "Trip Store Krabi" : operatorName);
|
|
181
181
|
signature += `<br>WhatsApp chat: <a href='https://wa.me/${contact.respondNumber.replace(
|
|
182
182
|
/\D/g,
|
|
183
183
|
''
|
|
@@ -300,8 +300,24 @@ export function getStartingPointMessage(booking, product) {
|
|
|
300
300
|
text += '\n\nSPECIAL CUSTOMER NEEDS: ' + notes.join(', ');
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
+
// add customer information from starting point
|
|
304
|
+
let important = [];
|
|
305
|
+
if (product) {
|
|
306
|
+
let startingPoint = product.startingPoints.find(
|
|
307
|
+
(item) => item.id === booking.startingPointId
|
|
308
|
+
);
|
|
309
|
+
|
|
310
|
+
if (startingPoint?.customerInformation) {
|
|
311
|
+
important.push(startingPoint.customerInformation.trim());
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
303
315
|
if (product?.customerInformation?.length > 0) {
|
|
304
|
-
|
|
316
|
+
important.push(product.customerInformation);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
if (important.length > 0) {
|
|
320
|
+
text += '\n\nIMPORTANT INFORMATION: ' + important.join("\n\n");
|
|
305
321
|
}
|
|
306
322
|
|
|
307
323
|
if (booking.dietary?.length > 0) {
|