Skip to content

Reports Phase A In-progress

Reports turns transaction data into the numbers an owner runs the business on: end-of-shift cash reconciliation (X/Z reports), daily sales summaries, what is selling, and how categories and suppliers compare. It is read-only — it aggregates over completed orders and closed sessions rather than changing anything.

1. Identity

PropertyValue
Module IDCORE-11
TierCore
StatusIn-progress
PhaseP1 (daily sales summary) · P2 (shift X/Z reports, product / category / purchase analysis) · P3 (advanced analytics)
PriorityMEDIUM
Primary usersOwner · Manager · Cashier

2. Purpose & Scope

IncludedExcluded
Cashier shift reports — X (interim) and Z (closing)Profit & loss analytics (Planned)
Cash reconciliation: float, sales, pay-in/out, expected vs. actualInventory valuation reports (Planned)
Daily sales summary by date rangeCustomer / retention analytics (Planned)
Product sales (top sellers by revenue & quantity)Export to PDF / CSV / Excel (Planned)
Category sales + single-category drill-downScheduled auto-generated reports (Planned)
Purchase summary (supplier / PO spending)Tax declaration reports (Tax & Invoice)
Merchant-scoped, date-ranged queriesTechnical API specifications (see developer docs)

3. Capabilities

CapabilityWhat the user can doStatus
Daily sales summaryView gross, tax, discount, net totals and order count per day across a date rangeBuilt
Product salesSee top-selling products ranked by revenue and quantityBuilt
Category salesBreak down sales by product categoryBuilt
Category drill-downInspect a single category's performanceBuilt
Purchase summaryReview purchase-order / supplier spending for cost comparisonBuilt
Shift reconciliation (Z report)Close a shift and get expected-vs-actual cash plus a locked session snapshotBuilt
X report (interim)Pull a mid-shift summary while the session is still openIn-progress
Payment-method breakdownSee totals split by cash / card / e-walletIn-progress
Profit analyticsCompare cost vs. revenue (margin)Planned
Inventory valuationValue stock on hand (AVCO / FIFO)Planned
Customer analyticsRetention, lifetime value, segmentationPlanned
Export & schedulingPDF / CSV / Excel export and auto-generated reportsPlanned

The mock-data and stubbed-export findings from earlier QE assessments applied to a legacy admin reporting API. Built sales reporting now runs on the @nx/sale SalesReportService, which pushes every aggregation down to indexed SQL over completed orders — see Test Cases for the verified behavior.

4. Module Dependencies

Depends onWhy
OrdersCompleted sale orders and POS sessions are the source of every sales and shift figure
ProductProduct and category names drive the product / category breakdowns
PaymentPayment records back the cash reconciliation and payment-method split
InventoryPurchase orders feed the purchase summary (cost comparison)

5. Backend Packages

Implementation detail lives in the developer docs — this section only maps the module to the services that power it.

PackageRoleDeveloper docs
@nx/saleSales aggregation (SalesReportService) and shift X/Z reporting (ShiftService, PosSessionReport)sale

6. Key User Flows

Daily sales report

Shift X / Z reports

7. Roles & Permissions

RoleCanCannot
CashierPull the X report for their own open shift; close their shift to produce the Z reportView cross-merchant or business-wide sales analytics
ManagerView all sales / product / category / purchase reports for their merchant; review any shiftSee other merchants' data
OwnerAll manager reporting across their merchants

Reports are always scoped to the user's merchant access; a user can never see another merchant's figures.

8. Status & Roadmap

PhaseCapabilities
P1Daily sales summary by date range (gross, net, tax, discount, count)
P2Shift X/Z reports with cash reconciliation, product sales, category sales + drill-down, purchase summary, payment-method breakdown
P3Profit analytics, inventory valuation, customer analytics, PDF/CSV/Excel export, scheduled reports, dashboard KPI widgets

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