feat: Combine logic of count calculations in ViewOrdersCubit and update date handling for order filtering

This commit is contained in:
Achintha Isuru
2026-02-04 09:04:11 -05:00
parent ad48d47ded
commit c63ea40ce9
2 changed files with 9 additions and 2 deletions

View File

@@ -19,3 +19,4 @@
- ` final String status;` in `OrderItem` make it an enum.
- /// Date of the shift (ISO format).
final String date; make this in the DateTime format instead of string.
- in `view_orders_cubit.dart` combine the logic of `_calculateUpNextCount ` and `_calculateTodayCount` into a single function that calculates both counts together to avoid redundant filtering of orders.