From 2dc787d2ed9a71f3095606846d9b998664fd9277 Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Mon, 9 Dec 2019 06:51:03 +0100 Subject: [PATCH] reformat "moved to another day" fee text, show old booking time --- services/integration/invoiceIntegration.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/integration/invoiceIntegration.js b/services/integration/invoiceIntegration.js index 7101224..bec2c27 100644 --- a/services/integration/invoiceIntegration.js +++ b/services/integration/invoiceIntegration.js @@ -138,8 +138,8 @@ const createFeeFromIncident = (incident) => { roomExplanation = newResourceName || 'Unknown'; // dateExplanation = `${oldBookingStartMoment.clone().format('ddd, MMM DD')} -> ${newBookingStartMoment.clone().format('ddd, MMM DD')}`; - dateExplanation = `${newBookingStartMoment.clone().format('MMM DD')}`; - bookingTimeExplanation = `[${newBookingStartMoment.clone().format('HH:mm')} to ${newBookingEndMoment.clone().format('HH:mm')}]`; + dateExplanation = `${oldBookingStartMoment.clone().format('MMM DD')}`; + bookingTimeExplanation = `[${oldBookingStartMoment.clone().format('HH:mm')} to ${oldBookingEndMoment.clone().format('HH:mm')}]`; incidentTimeExplanation = `moved on : ${incidentTimestampMoment.clone().format('MMM DD, HH:mm')}`; incidentExplanation += `, ${incidentTimeExplanation}`;