From b13980a16d4d86f6e64271cd51f54ed4ac95dc08 Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Mon, 9 Dec 2019 06:55:14 +0100 Subject: [PATCH] change date of shortening fees to the date of booking --- services/integration/invoiceIntegration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/integration/invoiceIntegration.js b/services/integration/invoiceIntegration.js index bec2c27..3eab044 100644 --- a/services/integration/invoiceIntegration.js +++ b/services/integration/invoiceIntegration.js @@ -165,7 +165,7 @@ const createFeeFromIncident = (incident) => { incidentTimeExplanation = `reservation shortened from [${originalBookingExplanation}] on [${incidentTimestampMoment.clone().format('MMM DD, HH:mm')}]`; incidentExplanation = `${incidentTimeExplanation}`; - date = incidentTimestampMoment.clone().startOf('day').format(); + date = newBookingStartMoment.clone().startOf('day').format(); price = +totalChargeFee.toFixed(2); quantity = 1.00;