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

GSTR-1 Report Module

The GSTR-1 Report Module provides detailed GST reporting for B2B and B2C invoices. It allows filtering by customer and date range and generates summary, customer-wise aggregation, HSN summaries, and detailed invoice tables.


🔹 Features

1. Filters

2. Summary Cards

3. Customer-wise Tax Aggregation

4. B2B Invoice Table

5. B2C Invoice Table

6. HSN Summary (Material-Based)


🔗 API Endpoints

Action Method Endpoint Description
Fetch Customers GET /customer Returns all customers for filter dropdown
Fetch Filtered Invoices / Reports GET /dashboard/filter Returns filtered invoices for GSTR-1 reporting

Query Parameters for /dashboard/filter:


📝 Workflow

  1. Load Reports:
    • On component mount, fetch customers and default invoice data (current month).
  2. Filtering:
    • Select customer or date range → apply filters → fetch filtered report.
    • Clear resets filters to default and reloads data.
  3. Data Aggregation:
    • B2B invoices: Filtered by valid GSTIN and taxId.
    • B2C invoices: Filtered as invoices without GSTIN.
    • Customer-wise summary: Aggregates B2B invoices by GSTIN.
    • Totals: Overall taxable, CGST, SGST, IGST for displayed invoices.
    • HSN summary: Aggregates quantities per material.

🔹 Computed Properties

Computed Property Purpose
b2bInvoices Filters invoices with GSTIN and taxId
b2cInvoices Filters invoices without taxId
customerWiseSummary Aggregates B2B invoices by GSTIN
customerTotals Totals for customer-wise aggregation
b2bTotals Totals for all B2B invoices
b2cTotals Totals for all B2C invoices
hsnSummary Aggregates material quantities from trips
hsnTotalQty Total quantity of all HSN items

🔹 Helpers


⚡ UI / UX Notes

E-Trans Admin Reporting System Documentation

Table of Contents

  1. Overview
  2. Dashboard Summary Module

    • Filters
    • Summary Cards
    • Charts
    • Paginated Invoices Table
    • API Endpoints
  3. GSTR-1 Report Module

    • Filters
    • Summary Cards
    • Customer-wise Aggregation
    • B2B / B2C Reports
    • HSN Summary
    • API Endpoints
  4. Common API Authentication and Refresh Mechanism
  5. Notes on Computed Summaries and Aggregation Logic

Module Hierarchy

E-Trans Admin
│
├── Dashboard Summary
│   ├── Filters
│   │   ├── Year / Month / Quarter
│   │   ├── Start / End Date
│   │   └── Search (Customer / Vehicle / Bill No)
│   ├── Summary Cards
│   │   ├── Total Revenue
│   │   ├── Total Received
│   │   └── Total Pending
│   ├── Charts
│   │   ├── Top 5 Customer Revenue
│   │   ├── Monthly Revenue Trend
│   │   ├── Pending vs Received
│   │   └── Vehicle Revenue
│   └── Paginated Invoices Table
│       └── Bill No, Customer, Vehicle(s), Total, Received, Balance
│
└── GSTR-1 Report
    ├── Filters
    │   ├── Customer
    │   ├── From Date / To Date
    │   └── Apply / Clear buttons
    ├── Summary Cards
    │   └── Total Taxable, CGST, SGST, IGST
    ├── Customer-wise Aggregation
    │   └── GSTIN-wise aggregation
    ├── B2B Invoices
    │   └── GSTIN available
    ├── B2C Invoices
    │   └── No GST
    └── HSN Summary
        └── Material-wise total quantity

API Mapping

Module Endpoint Method Parameters Description
Dashboard Summary /dashboard/summary GET year, month, startDate, endDate, search, page, size Fetch summary metrics, charts data, and paginated bills
Dashboard Summary /dashboard/suggestions GET query Autocomplete for customer/vehicle/bill search
GSTR-1 Report /dashboard/filter GET customerId, fromDate, toDate, page, size Fetch filtered invoice data for reports
Customers /customer GET page, size Fetch customer master data
Authentication /auth/login POST username, password Login
Authentication /auth/refresh POST refreshToken Refresh expired access token

Filter and Summary Details

Dashboard Summary Filters

Dashboard Summary Computed Metrics

GSTR-1 Filters

GSTR-1 Computed Metrics


Authentication Flow


📷 Screenshot (Example)

GSTR-1 Report