Overview
Reports provide detailed views of all shipments with advanced filtering, sorting, and export capabilities. The system automatically adjusts data visibility based on your user role.Administrators can view all shipments and financial data, while regular users see only shipments assigned to their packages.
Shipment Reports Table
The reports page displays a comprehensive table with the following information:Regular User Columns
| Column | Description |
|---|---|
| ID | Unique shipment identifier |
| Package | Package name |
| Source | Origin location |
| Destination | Delivery location |
| Material | Type of material being transported |
| Transport | Transporter company name |
| Vehicle | Vehicle registration number |
| Gross Weight | Total weight including container (tons) |
| Tare Weight | Empty container weight (tons) |
| Net Weight | Actual cargo weight (tons) |
| Departure Date | When the shipment departed |
Admin Additional Columns
Administrators see additional financial columns:| Column | Description | Calculation |
|---|---|---|
| Material Unit | Unit of measurement | From materials table |
| Billing Rate | Rate per ton charged to client | ₹/Ton |
| Vendor Rate | Rate per ton paid to vendor | ₹/Ton |
| Billing Amount | Total client charge | Billing Rate × Net Weight |
| Vendor Amount | Total vendor payment | Vendor Rate × Net Weight |
| Profit | Net profit per shipment | Billing Amount - Vendor Amount |
Filtering by Date Range
Use the date range picker to filter shipments:Sorting Data
Click on any column header to sort the data:- First click: Sort ascending (A-Z, 0-9, oldest-newest)
- Second click: Sort descending (Z-A, 9-0, newest-oldest)
- Arrow indicator: Shows current sort direction
Pagination
Reports are paginated for better performance:- Page size: 10 shipments per page
- Navigation: Use Previous/Next buttons
- Current position: Displayed as “Page X of Y”
Pagination resets to page 1 when filters or sorting are applied.
Export to Excel
Export shipment data to Excel format for offline analysis:Export Process
Export Features
File Format
File Format
- Format: XLSX (Excel)
- Worksheet name: “Shipments”
- Headers: First row contains column names
- Data: Each shipment is a separate row
Data Included
Data Included
Regular Users:
- Package, Source, Destination
- Transporter, Vehicle
- Material (name, unit, description)
- Gross Weight, Tare Weight, Net Weight
- Departure Time, Remarks
- Shipment ID
- Billing Rate, Vendor Rate
- Billing Amount, Vendor Amount, Profit
Formatting
Formatting
- Dates: “MMM d, yyyy h:mm a” (e.g., “Jan 15, 2024 2:30 PM”)
- Weights: Two decimal places (e.g., “45.50”)
- Currency: Two decimal places (e.g., “12500.00”)
- Empty values: “N/A”
Export Validation
The export button is disabled when:- No date range is selected
- Export is currently in progress
- You have no assigned packages (regular users)
Export Example
Error Handling
No Data Available
If no shipments are found:- All users: “No shipments found in the selected date range”
- Regular users: “No shipments have been assigned to you”
- Admins: “No shipments found in the system”
Loading Errors
If data fails to load:- Error icon is displayed
- Error message: “Failed to load shipments”
- Detailed error description shown
Role-Based Access
Administrator Access
Regular User Access
Performance Considerations
- Pagination: Only 10 records displayed per page
- Query optimization: Date range filtering on database level
- Export limit: No hard limit, but large date ranges may take longer
- Caching: Analytics data uses short-term caching
For best performance, limit your date range to specific periods rather than exporting years of data at once.
Use Cases
Financial Analysis
Export admin reports to analyze profit margins and billing efficiency
Operational Review
Review shipment volumes and transporter performance
Compliance Reporting
Generate date-range reports for audit and compliance purposes
Trend Analysis
Export data to external tools for advanced analytics
Related Pages
Dashboard Analytics
View real-time metrics and trends
Shipments
Create and manage shipments