E-Trans Documentation
Developed by Pratik Dimble | Tested by Swapnil Kharat Contact Me

Invoice (Bill) Master Module

The Invoice Master Module provides a comprehensive view of all invoices in E-Trans Dashboard, allowing users to create, view, edit, delete, export, and manage credit notes for invoices.


🔹 Features


🖥️ Table Columns

Column Description
Bill No Unique identifier for the invoice
Customer Customer name
Invoice Date Date invoice was generated
Due Date Payment due date
Total Total amount of invoice
Received Amount received
Balance Outstanding balance
Actions Buttons for edit, view, delete, export, and add credit note

🔗 API Endpoints

Action Method Endpoint Description
List Bills GET /bill Fetch paginated list of invoices
Autocomplete Search GET /bill/autocomplete Fetch suggestions for invoice search
Delete Bill DELETE /bill/{billId} Delete invoice if no associated credit notes
Export Invoice PDF GET /export/bill/{billId}/pdf Export invoice as PDF
Redirect to Add Credit Note Router /dashboard/credit-notes/add Autofills credit note form from selected invoice

📝 Workflow

  1. Create Invoice: Click the Create Invoice button to open the new invoice form.
  2. Search Invoice: Type Bill No in the search box; autocomplete suggestions will appear.
  3. Filter Invoices: Click “All”, “Pending”, or “Overdue” to filter the table.
  4. Invoice Actions:
    • Edit: Click the pencil icon if invoice balance > 0.
    • View: Click the eye icon to view invoice and trips details.
    • Delete: Click the trash icon; modal will warn if credit notes exist.
    • Export PDF: Admins can download invoice as PDF.
    • Add Credit Note: Admins can add a credit note for outstanding invoices.
  5. Pagination: Navigate through pages using pagination controls.
  6. View Modal: Displays invoice totals, trips, and materials in a structured table.

⚡ UI / UX Notes


📷 Screenshot (Example)

Invoice List Module