tripstorekrabi-shared 1.13.60 → 1.13.62

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 +2 -0
  2. package/package.json +1 -1
  3. package/price.js +6 -0
package/booking.js CHANGED
@@ -242,6 +242,7 @@ export function getStartingPointMessage(booking, product) {
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
247
  payOnTour.push(` • ${item}`);
247
248
  }
@@ -250,6 +251,7 @@ export function getStartingPointMessage(booking, product) {
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tripstorekrabi-shared",
3
- "version": "1.13.60",
3
+ "version": "1.13.62",
4
4
  "description": "Shared library for Trip Store Krabi",
5
5
  "author": "Stefan Sommer <tonprince@gmail.com>",
6
6
  "repository": {
package/price.js CHANGED
@@ -16,11 +16,17 @@ export const EXTRA_PAYMENT_CATEGORIES = [STARTING_POINT_EXTRA_PAYMENT,
16
16
  PAX_EXTRA_PAYMENT,
17
17
  ADD_ON_EXTRA_PAYMENT,
18
18
  OTHER_EXTRA_PAYMENT];
19
+ export const CUSTOM_MEETING_POINT = {
20
+ id: 0,
21
+ name: 'Custom meeting point',
22
+ value: 'Custom meeting point',
23
+ };
19
24
 
20
25
  const SELLING_MODE = 0;
21
26
  const PARTNER_MODE = 1;
22
27
  const OPERATOR_MODE = 2;
23
28
 
29
+
24
30
  export function calculateProductSellingPrice(booking, pricing) {
25
31
  return booking.customerPaymentStatus === "Refunded" ? 0 : calculateProductPrice(booking, pricing, { mode: SELLING_MODE });
26
32
  }