fix(analytics): recognize picked_up status in dashboard and stats

- Add picked_up to STATUS_COLORS and STATUS_LABELS in AdminDashboard
- SQL: admin_delivery_stats counts picked_up as delivered
- SQL: admin_daily_trend counts picked_up as delivered
- SQL: admin_driver_stats counts picked_up as delivered
- Fixes: picked_up showed as Unknown, delivered count was 17 short
This commit is contained in:
root 2026-07-06 06:17:32 +00:00
parent eabf30bceb
commit 6786779f2c
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,7 @@ const STATUS_COLORS = {
loaded: '#6366f1',
on_route: '#8b5cf6',
delivered: '#10b981',
picked_up: '#10b981',
paid_storage: '#06b6d4',
problem: '#ef4444',
cancelled: '#64748b',
@ -53,6 +54,7 @@ const STATUS_LABELS = {
loaded: 'Загружено',
on_route: 'В пути',
delivered: 'Доставлено',
picked_up: 'Вывезено',
paid_storage: 'Оплаченное хранение',
problem: 'Проблема',
cancelled: 'Отменено',