Fixes: 1) Add missing `constance.config` import in `views.py`; 2) Replace hardcoded timeframe logic with configurable period parsing; 3) Ensure proper handling of empty datasets for low stock and KPI calculations. Extra: Refactor dashboard templates to improve layout and add contextual adjustments (e.g., grid updates, daily sales title); Optimize cache handling for dashboard metrics; Cleanup unused legacy dashboard variables. |
||
|---|---|---|
| .. | ||
| _customers_mix.html | ||
| _daily_sales.html | ||
| _filters.html | ||
| _income_overview.html | ||
| _kpis.html | ||
| _low_stock.html | ||
| _most_returned.html | ||
| _product_lists.html | ||
| _quick_links.html | ||
| _shipped_vs_digital.html | ||
| _top_categories.html | ||