Any order whether for Pick Up/Dine In or Delivery is matched up against your restaurant or delivery hours to make sure they are within your correct hours.
Ex. If you have delivery ending at 10:00pm in the Restaurant Hours Settings & your estimated total delivery time is around 30 minutes.
NO order AFTER 9:31pm will be allowed to go through. Because 9:31pm + 30 minutes = 10:01pm (which is after your delivery ending time).
To take delivery orders up to your closing time of 10:00pm, SET your delivery ending time to 10:30pm. This way even if an order is placed at 9:59pm + 30 minutes = 10:29pm (Which the system will allow to go through).