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

Dashboard Summary Module

The Dashboard Summary Module provides a high-level overview of financials and operations. It allows users to filter, search, visualize, and drill down into invoices, revenue, and vehicle/customer performance.


🔹 Features

1. Filters

2. Summary Cards

3. Charts

  1. Top 5 Customer Revenue: Bar chart highlighting highest revenue-generating customers.
  2. Monthly Revenue Trend: Line chart showing revenue across months.
  3. Pending vs Received: Stacked bar chart comparing received vs pending amounts per customer.
  4. Vehicle Revenue: Bar chart showing revenue per vehicle.

4. Paginated Invoice Table

5. Loading State


🔗 API Endpoints

Action Method Endpoint Description
Fetch Dashboard Summary GET /dashboard/summary Returns totals, charts, and paginated invoices
Fetch Search Suggestions GET /dashboard/suggestions Returns autocomplete suggestions for search input

📝 Workflow

  1. Load Dashboard:
    • Default selection: Current Year and Month.
    • Fetches summary, charts, and paginated invoices.
  2. Filtering:
    • Change year, month, or quarter → updates start/end dates automatically.
    • Custom start/end date overrides period filters.
    • Search updates suggestions dynamically and filters results.
  3. Charts Rendering:
    • Customer, monthly, pending vs received, and vehicle revenue charts render dynamically using Chart.js.
    • Top 5 customers highlighted with color coding based on revenue.
  4. Pagination:
    • Navigate invoices using previous/next buttons or page numbers.
  5. Clear Filters:
    • Resets all filters to current month and clears search input.

⚡ UI / UX Notes


🔹 Data Mapping

Component Source Data
Total Revenue res.data.totalRevenue
Total Received res.data.totalReceived
Total Pending res.data.totalPending
Customer Revenue res.data.customerRevenue
Vehicle Revenue res.data.vehicleRevenue
Bills Table res.data.bills

📷 Screenshot (Example)

Dashboard Summary