@hyper.software/common-helpers 2.1.38 → 2.1.39
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.
|
@@ -63,7 +63,7 @@ var getBookingServiceTotalCost = function (booking, rbbs) {
|
|
|
63
63
|
return totalCostBookingService;
|
|
64
64
|
}
|
|
65
65
|
var accommodationCost = (0, bookingsService_1.getAccommodationCost)(__assign(__assign({}, booking), { roomBookings: [roomBooking] }));
|
|
66
|
-
var finalPrice = accommodationCost
|
|
66
|
+
var finalPrice = accommodationCost + (0, bookingsService_1.getLengthOfStayDiscount)(booking, booking.company);
|
|
67
67
|
return finalPrice * (amount / 100);
|
|
68
68
|
}
|
|
69
69
|
var calculateLengthMultiplier = function () {
|
|
@@ -235,7 +235,7 @@ var getServicesCost = function (booking, company) {
|
|
|
235
235
|
return sum + totalExternalBookingServiceCost;
|
|
236
236
|
}
|
|
237
237
|
var accommodationCost = (0, exports.getAccommodationCost)(__assign(__assign({}, booking), { roomBookings: [roomBooking] }));
|
|
238
|
-
var finalPrice = accommodationCost
|
|
238
|
+
var finalPrice = accommodationCost + (0, exports.getLengthOfStayDiscount)(booking, company);
|
|
239
239
|
var bookingServiceCost = finalPrice * (amount / 100);
|
|
240
240
|
return sum + bookingServiceCost;
|
|
241
241
|
}, 0);
|