Files
TimeTracker/app
Dries Peeters 62312c5ba8 feat: Add Excel export for invoices and payments, fix invoice export bug
- Fix invoice export AttributeError: use `invoice.creator` instead of `invoice.created_by_user`
- Add comprehensive Excel export functionality for payment list
  - New utility function `create_payments_list_excel()` with formatted output
  - New endpoint `/payments/export/excel` with filter support
  - Export includes payment details, gateway fees, and summary statistics
  - Respects user permissions (admin/regular user access control)
- Add "Export to Excel" button to payments list page with filter preservation
- Add "Export to Excel" button to invoices list page
- Verify Reports and Project Reports already have working Excel export

Excel export now available for:
- Time entries and reports (/reports/export/excel)
- Project reports (/reports/project/export/excel)
- Invoice list (/invoices/export/excel) - FIXED
- Payment list (/payments/export/excel) - NEW

All exports include:
- Professional formatting with borders and styling
- Proper number formatting for currency fields
- Summary sections with totals and statistics
- Auto-adjusted column widths
- Analytics tracking

Closes feature request for Excel export buttons across UI
2025-10-30 08:07:57 +01:00
..
2025-10-21 20:03:21 +02:00