Issues with back-to-back reservations, catching standalone charges & brake between bookings

This commit is contained in:
Senad Uka
2019-12-06 06:10:19 +01:00
parent 43c4214a23
commit 983c08ff36
6 changed files with 421 additions and 181 deletions

View File

@@ -146,7 +146,7 @@ const getIncidentsFromChanges = (changes) => {
reservationsForAdditionalCheck.push(reservationId);
}
} else {
console.log('\t\tNo');
// console.log('\t\tNo');
// Reservation moved to another day
// Add cancellation charge
const chargeFee = oldReservationLength * reservationHourlyRate * BOOKING_CHANGE_PERCENTAGE_CHARGE / 100;