mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-05-24 15:20:52 -05:00
8e85e41f21
xes bug where Reports, Payments, and Expenses dashboards displayed hardcoded Euro symbols (€) instead of respecting the CURRENCY setting from the environment file. Changes: - Added currency_symbol and currency_icon Jinja2 filters supporting 25+ currencies - Updated Reports page to use dynamic currency symbols - Updated Payments list page to use dynamic currency symbols - Updated Expenses list page to use dynamic currency symbols and icons - Updated Expenses dashboard to use dynamic currency symbols and icons - Created comprehensive test suite with 14 tests (unit, integration, smoke) - Added bug fix documentation The currency variable is already injected via context processor, so pages now correctly display USD ($), EUR (€), GBP (£), or any configured currency symbol based on the CURRENCY environment variable. Affected pages: - /reports - /payments - /expenses - /expenses/dashboard Test with: pytest tests/test_currency_display.py -v Files changed: - app/utils/template_filters.py (added filters) - app/templates/reports/index.html - app/templates/payments/list.html - app/templates/expenses/list.html - app/templates/expenses/dashboard.html - tests/test_currency_display.py (new) - docs/BUGFIX_CURRENCY_DISPLAY.md (new)