Skip to main content

Story 2: Invoice Generation & Management

Overview​

FieldValue
Story IDNGE-14-2
Story Points13
SprintSprint 11
LanguageNode.js (NestJS)

User Story​

As a School Admin
I want to generate invoices for students automatically
So that I can collect fees efficiently

Acceptance Criteria​

  • Generate invoice based on student's fee structure
  • Apply applicable concessions automatically
  • Calculate taxes if applicable
  • Generate PDF with school letterhead
  • Support bulk invoice generation
  • Track invoice status (Pending, Paid, Overdue)

API Endpoints​

MethodEndpointDescription
POST/invoicesGenerate invoice
POST/invoices/bulkBulk generation
GET/invoicesList invoices
GET/invoices/:idGet invoice details
GET/invoices/:id/pdfDownload PDF

Invoice Number Format​

INV/YYYYMM/00001
Example: INV/202504/00001

Tasks​

TaskTitleEstimate
T1Create invoice tables3h
T2Implement InvoiceService8h
T3PDF generation with PDFKit6h
T4Bulk generation with BullMQ4h
T5Invoice list/detail UI6h
T6Integration tests4h