Skip to content

Work in Progress

Feature details in this document may change during investigation, discussion, design, and implementation phases.

Reports / Báo cáo

Business analytics and reporting.

Overview

AttributeValue
Module IDCORE-12
PhasePhase 1 (Basic), Phase 3 (Advanced)
PriorityHIGH
DependenciesAll Core Modules

The Reports module provides comprehensive business analytics and reporting capabilities. From basic revenue reports to detailed tax declarations, it gives business owners the insights needed to manage effectively and stay compliant with Vietnam tax regulations.

┌─────────────────────────────────────────────────────────────────┐
│                    REPORTING SYSTEM                             │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│    ┌─────────────────────────────────────────────────────┐      │
│    │                 DATA SOURCES                        │      │
│    │  ┌────────┐ ┌────────┐ ┌────────┐ ┌────────┐       │      │
│    │  │ Orders │ │Payment │ │Inventory│ │ Tax   │       │      │
│    │  └───┬────┘ └───┬────┘ └───┬────┘ └───┬────┘       │      │
│    └──────┼──────────┼──────────┼──────────┼────────────┘      │
│           └──────────┴──────────┴──────────┘                    │
│                          │                                      │
│                          ▼                                      │
│    ┌─────────────────────────────────────────────────────┐      │
│    │              REPORT CATEGORIES                      │      │
│    │                                                     │      │
│    │  ├── Revenue Reports (P1)                           │      │
│    │  │   Daily, Weekly, Monthly sales                   │      │
│    │  │                                                  │      │
│    │  ├── Tax Reports (P1)                               │      │
│    │  │   Tax summary, Invoice register                  │      │
│    │  │                                                  │      │
│    │  ├── Inventory Reports (P2)                         │      │
│    │  │   Stock levels, Movement history                 │      │
│    │  │                                                  │      │
│    │  └── Analytics (P3)                                 │      │
│    │      Profit, Trends, Performance                    │      │
│    └─────────────────────────────────────────────────────┘      │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

User Stories

Phase 1 - Basic Reports

IDAs a...I want to...So that...
US-01Business ownerView daily revenueI know today's sales
US-02Business ownerView weekly summaryI track weekly performance
US-03Business ownerView monthly revenueI see monthly trends
US-04Business ownerSee payment breakdownI know cash vs QR vs card
US-05Business ownerView tax collectedI prepare for filing
US-06Business ownerExport reportsI share with accountant
US-07Business ownerSee top productsI know best sellers

Phase 2-3 - Advanced Reports

IDAs a...I want to...So that...
US-08Business ownerView inventory reportsI track stock levels
US-09Business ownerSee profit marginsI understand profitability
US-10Business ownerCompare storesI see store performance
US-11Business ownerSee hourly trendsI know peak times
US-12Business ownerTrack staff performanceI measure productivity
US-13Business ownerSchedule reportsReports sent automatically

Feature Matrix

FeatureP1P2P3Description
Daily revenueToday's sales summary
Weekly revenueWeek-over-week comparison
Monthly revenueMonthly performance
Payment breakdownBy payment method
Product salesSales by product
Tax summaryTax collected
Export (PDF/Excel)Download reports
Inventory reportsStock levels, movement
Store comparisonMulti-store metrics
Custom date rangeFlexible reporting
Profit analysisMargin calculations
Trend analysisHistorical trends
Staff reportsPerformance metrics
Scheduled reportsAutomatic delivery
Dashboard widgetsCustomizable dashboard

Report Categories

Revenue Reports

ReportDescriptionFrequencyPhase
Daily SummaryToday's revenue, orders, average ticketDailyP1
Weekly SummaryWeek totals, daily breakdownWeeklyP1
Monthly SummaryMonth totals, weekly breakdownMonthlyP1
Payment BreakdownRevenue by payment methodAllP1
Hourly AnalysisSales by hour of dayDailyP3

Product Reports

ReportDescriptionFrequencyPhase
Top ProductsBest selling itemsAllP1
Category SalesRevenue by categoryAllP1
Product PerformanceSales vs previous periodAllP3
Low PerformersSlow moving itemsAllP3

Tax Reports

ReportDescriptionFrequencyPhase
Tax SummaryTax collected by rateMonthlyP1
Invoice RegisterAll invoices issuedOn demandP1
Declaration DataTax filing exportPer scheduleP2

Inventory Reports (Phase 2)

ReportDescriptionFrequencyPhase
Stock LevelsCurrent quantitiesOn demandP2
Stock MovementIn/out transactionsOn demandP2
Low StockBelow reorder pointDailyP2
Stock ValuationInventory valueOn demandP3

Performance Reports (Phase 3)

ReportDescriptionFrequencyPhase
Profit & LossRevenue minus costsMonthlyP3
Store ComparisonMulti-store metricsOn demandP3
Staff PerformanceSales by employeeOn demandP3
Customer AnalysisPurchase patternsOn demandP3

Key Flows

Report Generation Flow

Dashboard Loading Flow

Export Flow

Scheduled Report Flow (Phase 3)


Dashboard Widgets

┌─────────────────────────────────────────────────────────────────┐
│                    DASHBOARD LAYOUT                             │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  ┌─────────────────────────────────────────────────────────┐    │
│  │                    TODAY'S SUMMARY                      │    │
│  │   Revenue: 3,500,000 VND    Orders: 45    Avg: 77,778   │    │
│  └─────────────────────────────────────────────────────────┘    │
│                                                                 │
│  ┌───────────────────────┐  ┌───────────────────────────┐      │
│  │   PAYMENT METHODS     │  │    TOP PRODUCTS           │      │
│  │   ├── Cash:    40%    │  │    1. Coffee       150    │      │
│  │   ├── QR:      35%    │  │    2. Tea          120    │      │
│  │   └── Card:    25%    │  │    3. Sandwich      80    │      │
│  └───────────────────────┘  └───────────────────────────────┘  │
│                                                                 │
│  ┌─────────────────────────────────────────────────────────┐    │
│  │                  WEEKLY TREND                           │    │
│  │   ████                                                  │    │
│  │   ████ ████                                             │    │
│  │   ████ ████ ████                    ████                │    │
│  │   ████ ████ ████ ████ ████ ████ ████                    │    │
│  │   Mon  Tue  Wed  Thu  Fri  Sat  Sun                     │    │
│  └─────────────────────────────────────────────────────────┘    │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Business Rules

Rule IDRuleDescription
BR-01Real-time updatesDashboard updates within 30 seconds
BR-02Date range limitMax 1 year for detailed reports
BR-03Data retentionReports available for 10 years
BR-04Permission basedReports visible per user role
BR-05Store filteringMulti-store users see combined data
BR-06TimezoneAll times in organization timezone
BR-07CurrencyAll amounts in VND
BR-08Tax includedRevenue includes tax unless specified
BR-09Export formatPDF for sharing, Excel for analysis
BR-10Schedule limitMax 10 scheduled reports per user

Acceptance Criteria

AC-01: Daily Revenue Report

GIVEN   completed orders for today
WHEN    user views daily revenue
THEN    - Total revenue displayed
        - Number of orders shown
        - Average ticket calculated
        - Payment breakdown shown
        - Comparison to yesterday

AC-02: Report Filtering

GIVEN   a report with multiple parameters
WHEN    user applies filters
THEN    - Results update immediately
        - Filters are clearly shown
        - Clear all option available
        - Export includes filtered data

AC-03: Report Export

GIVEN   a generated report
WHEN    user exports to PDF
THEN    - PDF downloads immediately
        - Format is professional
        - All data included
        - Date range shown
        - Company info displayed

AC-04: Dashboard Performance

GIVEN   a user opening dashboard
WHEN    dashboard loads
THEN    - Key metrics show in < 2 seconds
        - Charts render smoothly
        - Auto-refresh works
        - Mobile view is responsive

AC-05: Tax Report for Filing

GIVEN   tax report for a quarter
WHEN    user generates declaration data
THEN    - Totals match invoice register
        - Tax by rate is correct
        - Export format matches CQT requirements
        - All invoices are included

Dependencies

Reports
├── Requires: All Core Modules
├── Required by: None (end module)
└── Integrates: Email service, CQT (tax reports)
ModuleRelationship
OrdersSales data source
PaymentPayment breakdown
TransactionFinancial records
Tax & InvoiceTax reports
InventoryStock reports
ProductProduct performance

Export Formats

┌─────────────────────────────────────────────────────────────────┐
│                    EXPORT OPTIONS                               │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  FORMAT        USE CASE              FEATURES                   │
│  ─────────────────────────────────────────────────────────────  │
│  │                                                              │
│  ├── PDF       Official records      Formatted, Branded,       │
│  │             Sharing               Charts included            │
│  │                                                              │
│  ├── Excel     Analysis              Raw data, Pivot-ready,    │
│  │             Accounting            Multiple sheets            │
│  │                                                              │
│  ├── CSV       Import/Export         Simple format,            │
│  │             Integration           Universal compatibility   │
│  │                                                              │
│  └── JSON      API access            Machine-readable,         │
│                Integration           Structured data           │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Screenshots

Screenshots

Screenshots will be added after UI implementation.


Proprietary and Confidential. Unauthorized copying, distribution, or use of this software is strictly prohibited.