Chronoxy / pe

0 stars 0 forks source link

[Addapp Feature] End time at 24:00 or 00:00 #10

Closed Chronoxy closed 3 days ago

Chronoxy commented 4 days ago

Background

Assuming this is used for a 24-hour clinic, or a 24-hour hospice setting. Patients might have appoint from 10pm to 12am on that day. Therefore, I attempted to create an appointment for the timing. I note that UG mentioned "Office Hours" however, without a proper definition of "Office Hours" I assume that my office hours can be 24-hours as well.

Test Case

addapp nric/NRIC d/01/01/2025 start/23:00 end/00:00 OR addapp nric/NRIC d/01/01/2025 start/23:00 end/24:00

Expected Behaviour

Appointment created successfully.

Encountered Behaviour

Start time must be before end time image.png

Suggestion

Allow end time to be 24:00 to note for next day 12am whereas 00:00 is for the current day