Project

General

Profile

Actions

Feature #363

open
NP NP

Sales & day close: match the prototype (KPIs, items, top sellers, search, export)

Feature #363: Sales & day close: match the prototype (KPIs, items, top sellers, search, export)

Added by Navya P. about 1 month ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
10/12/2026
Due date:
% Done:

0%

Estimated time:
Resolved By:

Description

Rebuild Sales & day close to prototype parity, per Navya request.

Scope agreed with Navya:

  • StatCard-style KPIs: Gross / Subsidy / Net collected / Avg bill (icons, matches other pages)
  • DomainFootnote banner (reworded to drop the prototype's payroll-recoverable claim, which conflicts with ADR-0003)
  • Items column per bill row (name x qty)
  • Top items card (ranked by qty sold, same filtered/standing scope as the other breakdowns)
  • Bill-number search (server-side filter, case-insensitive)
  • CSV export of the filtered register (new endpoint, mirrors the day-close journal CSV)

Backend: SaleRegisterService/SaleDtos/SalesController extended with Lines, TopItems, BillNumber filter and ExportCsvAsync. New integration tests in SaleRegisterServiceTests. Frontend: sales/page.tsx, sales-view.ts, queries/sales.ts updated to match.

Actions

Also available in: PDF Atom