New Kitchen Order Status Model
The status model for kitchen orders has been changed. Now the order status can be changed independently of the statuses of the dishes included in it.
New statuses for KitchenOrder have been introduced through the enumeration KitchenOrderStatus:
- New (0) — Not being prepared
- CookingStarted (1) — Being prepared
- CookingCompleted (2) — Ready
- Packed (3) — Assembled
- Served (4) — Delivered
The enum names start with a prefix to avoid confusion with the statuses of individual dishes. The statuses are compatible with delivery statuses and correspond to the overall status model of the kitchen order.
This allows for more flexible management of the cooking process: for example, an order can be in the “Served” status even if individual dishes are still in the “Being prepared” status.