You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement Excel and PDF export endpoints in the Reports module inside backend/contrib/.
Location
All work must be inside backend/contrib/src/reports/.
Acceptance Criteria
GET /reports/export/excel — generates .xlsx using exceljs with all assets in a formatted table; returns with Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet and Content-Disposition: attachment; filename=assets-report.xlsx
GET /reports/export/pdf — generates PDF using pdfkit with a title, date, and asset table; returns with Content-Type: application/pdf
Excel columns: Asset ID, Name, Category, Department, Status, Condition, Purchase Price, Location, Created Date
Overview
Implement Excel and PDF export endpoints in the Reports module inside
backend/contrib/.Location
All work must be inside
backend/contrib/src/reports/.Acceptance Criteria
GET /reports/export/excel— generates.xlsxusingexceljswith all assets in a formatted table; returns withContent-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheetandContent-Disposition: attachment; filename=assets-report.xlsxGET /reports/export/pdf— generates PDF usingpdfkitwith a title, date, and asset table; returns withContent-Type: application/pdfJwtAuthGuard