Skip to content

[BE-33] Implement Excel and PDF export endpoints in Reports module #598

@yusuftomilola

Description

@yusuftomilola

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 .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
  • PDF mirrors same columns in a readable layout
  • Both endpoints protected by JwtAuthGuard

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions