Implement export functionality for four report types:
- Sales: Daily/period sales with totals and items
- Inventory: Current stock with value calculations
- Fiados: Customer credit accounts and balances
- Movements: Inventory entries/exits with references
Features:
- PDF exports using pdfkit with formatted tables and summaries
- Excel exports using exceljs with styling and formulas
- Filter support: date ranges, status, category, etc.
- Proper content-type headers for file downloads
- JWT authentication on all endpoints
Endpoints:
GET /api/v1/exports/sales/:format
GET /api/v1/exports/inventory/:format
GET /api/v1/exports/fiados/:format
GET /api/v1/exports/movements/:format
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>