add negative fee for discount

This commit is contained in:
Bilal Catic
2019-08-13 15:36:14 +02:00
parent 832c0f8eeb
commit 876297b698
6 changed files with 166 additions and 13 deletions

View File

@@ -142,7 +142,7 @@ const getChargedCanceledReservations = (reservationIds) => {
incidentType: incidentType.BOOKING_CANCELED_LATE,
};
const attributes = ['memberId', 'oldBookingStart', 'oldBookingEnd'];
const attributes = ['memberId', 'oldBookingStart', 'oldBookingEnd', 'chargeFee'];
return db.bookingChangeIncident.findAll({attributes, where: filters});
};