tripstorekrabi-shared 1.13.59 → 1.13.61
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 +6 -4
- package/package.json +1 -1
package/booking.js
CHANGED
|
@@ -227,29 +227,31 @@ export function getStartingPointMessage(booking, product) {
|
|
|
227
227
|
|
|
228
228
|
let payOnTour = [];
|
|
229
229
|
if (booking.nationalParkFee == PAY_ON_TOUR) {
|
|
230
|
-
|
|
230
|
+
let item = 'As stated on the website, there is an entrance fee';
|
|
231
231
|
|
|
232
232
|
if (product?.nationalPark) {
|
|
233
|
-
|
|
233
|
+
item += ' to ' + product?.nationalPark.title;
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
if (product?.nationalPark?.pricing
|
|
237
237
|
) {
|
|
238
|
-
|
|
238
|
+
item +=
|
|
239
239
|
' of ' +
|
|
240
240
|
product.nationalPark.pricing.adult +
|
|
241
241
|
' THB per adult and ' +
|
|
242
242
|
product.nationalPark.pricing.child +
|
|
243
243
|
' THB per child';
|
|
244
244
|
}
|
|
245
|
+
item += ' to be paid at the point of entry';
|
|
245
246
|
|
|
246
|
-
payOnTour.push(` • ${
|
|
247
|
+
payOnTour.push(` • ${item}`);
|
|
247
248
|
}
|
|
248
249
|
|
|
249
250
|
let extraPayments = Object.values(booking.extraPayments).filter((item) => !item.disabled && item.paymentMethod === PAY_ON_TOUR).map((item) => ` • ${item.description}: ${item.price} THB`);
|
|
250
251
|
payOnTour = [...payOnTour, ...extraPayments];
|
|
251
252
|
if (payOnTour.length > 0) {
|
|
252
253
|
text += '\n\nTO BE PAID ON TOUR:\n' + payOnTour.join("\n");
|
|
254
|
+
text += '\n\nPlease bring the total amount in cash to the trip.';
|
|
253
255
|
}
|
|
254
256
|
|
|
255
257
|
return text;
|