Formatting of invoices / Door lock time to incident reports
This commit is contained in:
@@ -14,37 +14,37 @@ const unlockedIncidentLevelsPrices = {
|
||||
id: 0,
|
||||
title: 'UNLOCKED_0',
|
||||
price: parseInt(process.env.UNLOCK_0) || 0,
|
||||
description: 'First month - warning',
|
||||
description: 'first month - warning',
|
||||
},
|
||||
UNLOCKED_1: {
|
||||
id: 1,
|
||||
title: 'UNLOCKED_1',
|
||||
price: parseInt(process.env.UNLOCK_1) || 10,
|
||||
description: 'Second month',
|
||||
description: 'second month',
|
||||
},
|
||||
UNLOCKED_2: {
|
||||
id: 2,
|
||||
title: 'UNLOCKED_2',
|
||||
price: parseInt(process.env.UNLOCK_2) || 20,
|
||||
description: 'Third month',
|
||||
description: 'third month',
|
||||
},
|
||||
UNLOCKED_3: {
|
||||
id: 3,
|
||||
title: 'UNLOCKED_3',
|
||||
price: parseInt(process.env.UNLOCK_3) || 30,
|
||||
description: 'Fourth month',
|
||||
description: 'fourth month',
|
||||
},
|
||||
UNLOCKED_4: {
|
||||
id: 4,
|
||||
title: 'UNLOCKED_4',
|
||||
price: parseInt(process.env.UNLOCK_4) || 40,
|
||||
description: 'Fifth month',
|
||||
description: 'fifth month',
|
||||
},
|
||||
UNLOCKED_5: {
|
||||
id: 5,
|
||||
title: 'UNLOCKED_5',
|
||||
price: parseInt(process.env.UNLOCK_5) || 50,
|
||||
description: 'Sixth month and onward',
|
||||
description: 'sixth month and onward',
|
||||
}
|
||||
};
|
||||
const csvParserErrors = {
|
||||
@@ -95,14 +95,14 @@ const incidentType = {
|
||||
};
|
||||
|
||||
const incidentTypeExplanations = {};
|
||||
incidentTypeExplanations[incidentType.UNLOCKED_INCIDENT_RELATED_WITH_RESERVATION] = 'Door left unlocked';
|
||||
incidentTypeExplanations[incidentType.UNLOCKED_INCIDENT_STANDALONE] = 'Door left unlocked';
|
||||
incidentTypeExplanations[incidentType.UNSCHEDULED_INCIDENT_BEFORE_RESERVATION] = 'Room used before reservation';
|
||||
incidentTypeExplanations[incidentType.UNSCHEDULED_INCIDENT_AFTER_RESERVATION] = 'Room used after reservation';
|
||||
incidentTypeExplanations[incidentType.UNSCHEDULED_INCIDENT_STANDALONE] = 'Room used without reservation';
|
||||
incidentTypeExplanations[incidentType.BOOKING_MOVED_TO_ANOTHER_DAY] = 'Reservation moved to another day';
|
||||
incidentTypeExplanations[incidentType.BOOKING_SHORTENED] = 'Reservation shortened after grace period';
|
||||
incidentTypeExplanations[incidentType.BOOKING_CANCELED_LATE] = 'Reservation cancelled after grace period';
|
||||
incidentTypeExplanations[incidentType.UNLOCKED_INCIDENT_RELATED_WITH_RESERVATION] = 'door left unlocked';
|
||||
incidentTypeExplanations[incidentType.UNLOCKED_INCIDENT_STANDALONE] = 'door left unlocked';
|
||||
incidentTypeExplanations[incidentType.UNSCHEDULED_INCIDENT_BEFORE_RESERVATION] = 'room used before reservation';
|
||||
incidentTypeExplanations[incidentType.UNSCHEDULED_INCIDENT_AFTER_RESERVATION] = 'room used after reservation';
|
||||
incidentTypeExplanations[incidentType.UNSCHEDULED_INCIDENT_STANDALONE] = 'room used without reservation';
|
||||
incidentTypeExplanations[incidentType.BOOKING_MOVED_TO_ANOTHER_DAY] = 'reservation moved to another day';
|
||||
incidentTypeExplanations[incidentType.BOOKING_SHORTENED] = 'reservation shortened after grace period';
|
||||
incidentTypeExplanations[incidentType.BOOKING_CANCELED_LATE] = 'reservation cancelled after grace period';
|
||||
|
||||
const UI_TIMEZONE = process.env.UI_TIMEZONE || 'America/Los_Angeles';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user