Adding a new feature to reverse the booking status from resident to booking confirmed or booking completed.
- On the booking details page, add a new option called 'Reverse Booking Status' into the button 'More'
- After clicking the option 'Reverse Booking Status', there is a modal coming up above
- Title: Reverse Booking Status
- Description: Please review the booking status this booking would be
- Details: Display the current booking status and the future booking status eg. Resident → Booking Confirmed or Booking Completed
- Text: The booking status will only reverse to booking completed if all before check-in tasks have been completed previously
- When the button “Submit” is clicked, there is a double-confirmation modal coming up
- Text: Booking status will be changed immediately. Are you sure to reverse the booking status?
- Click “Yes, reverse”, the modals will be disappeared and the booking status will be changed
- Click “Cancel”, the double-confirmation modal will be disappeared
- Click the button “X”, the modals will be disappeared and the booking status will not be changed
- Text: Booking status will be changed immediately. Are you sure to reverse the booking status?
The logic of reverse booking status from resident to booking confirmed or booking completed
- The reverse entry will only be available when the booking status is resident
- There are no pending or confirmed after-check-in amendments for the booking
- The booking status will roll back to what it was before (one step back)
- If the booking completed has been populated, reverse the booking status from resident to booking completed
- If the booking confirmed has been populated, reverse the booking status from resident to booking confirmed
- Change the bed status from occupied to booked
- The alerts need to be re-calculated upon successful reversal.