display booking charge incidents; refactor frontend
This commit is contained in:
@@ -4,6 +4,8 @@ export const UNSCHEDULED_INCIDENT_BEFORE_RESERVATION = 3;
|
||||
export const UNSCHEDULED_INCIDENT_AFTER_RESERVATION = 4;
|
||||
export const UNLOCKED_INCIDENT_STANDALONE = 5;
|
||||
export const UNSCHEDULED_INCIDENT_STANDALONE = 6;
|
||||
export const BOOKING_MOVED_TO_ANOTHER_DAY = 7;
|
||||
export const BOOKING_SHORTENED = 8;
|
||||
|
||||
export const incidentDescriptions = {};
|
||||
incidentDescriptions[UNLOCKED_INCIDENT_RELATED_WITH_RESERVATION] = 'User left door unlocked';
|
||||
@@ -11,6 +13,8 @@ incidentDescriptions[UNSCHEDULED_INCIDENT_BEFORE_RESERVATION] = 'Unscheduled use
|
||||
incidentDescriptions[UNSCHEDULED_INCIDENT_AFTER_RESERVATION] = 'Unscheduled use - after';
|
||||
incidentDescriptions[UNLOCKED_INCIDENT_STANDALONE] = 'User left door unlocked';
|
||||
incidentDescriptions[UNSCHEDULED_INCIDENT_STANDALONE] = 'Unscheduled use';
|
||||
incidentDescriptions[BOOKING_MOVED_TO_ANOTHER_DAY] = 'Reservation moved to another day';
|
||||
incidentDescriptions[BOOKING_SHORTENED] = 'Reservation shortened';
|
||||
|
||||
export const incidentLevelDescriptions = {
|
||||
UNLOCKED_0: 'First month',
|
||||
@@ -20,3 +24,9 @@ export const incidentLevelDescriptions = {
|
||||
UNLOCKED_4: 'Fifth month',
|
||||
UNLOCKED_5: 'Sixth month',
|
||||
};
|
||||
|
||||
export const incidentTableTypes = {
|
||||
INCIDENTS_RELATED_TO_RESERVATIONS: 1,
|
||||
STANDALONE_INCIDENTS: 2,
|
||||
BOOKING_CHANGE_INCIDENTS: 3,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user