tripstorekrabi-shared 1.21.5 → 1.21.6

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 (2) hide show
  1. package/package.json +1 -1
  2. package/price.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tripstorekrabi-shared",
3
- "version": "1.21.5",
3
+ "version": "1.21.6",
4
4
  "description": "Shared library for Trip Store Krabi",
5
5
  "author": "Stefan Sommer <tonprince@gmail.com>",
6
6
  "repository": {
package/price.js CHANGED
@@ -68,7 +68,7 @@ function calculateProductPrice(booking, pricing, options = { mode: SELLING_MODE
68
68
  console.error(`No volume price found for the total amount of ${booking.adults + booking.children} people`);
69
69
  return undefined;
70
70
  } else {
71
- let bookingSourceKey = getBookingSourceKey(booking.referenceNumber);
71
+ let bookingSourceKey = getBookingSourceKey(booking.otaPartnerRef);
72
72
 
73
73
  if (volume[bookingSourceKey]) {
74
74
  let customPricing = volume[bookingSourceKey];