tripstorekrabi-shared 1.11.8 → 1.11.9
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/package.json +1 -1
- package/price.js +4 -2
package/package.json
CHANGED
package/price.js
CHANGED
|
@@ -11,7 +11,8 @@ export function calculateProductPrice(booking, pricing, mode = "retail") {
|
|
|
11
11
|
case "person": {
|
|
12
12
|
let volume = findVolume(booking, pricing);
|
|
13
13
|
if (!volume) {
|
|
14
|
-
|
|
14
|
+
console.error(`No volume price found for the total amount of ${booking.adults + booking.children} people`);
|
|
15
|
+
return undefined;
|
|
15
16
|
} else {
|
|
16
17
|
let bookingType = getBookingType(booking.referenceNumber);
|
|
17
18
|
|
|
@@ -45,7 +46,8 @@ export function calculateProductPrice(booking, pricing, mode = "retail") {
|
|
|
45
46
|
case "group": {
|
|
46
47
|
let volume = findVolume(booking, pricing);
|
|
47
48
|
if (!volume) {
|
|
48
|
-
|
|
49
|
+
console.error(`No volume price found for the total amount of ${booking.adults + booking.children} people`);
|
|
50
|
+
return undefined;
|
|
49
51
|
} else {
|
|
50
52
|
let bookingType = getBookingType(booking.referenceNumber);
|
|
51
53
|
|