feat: Implement product heatmap grid with comprehensive data aggregation and PostgreSQL client for product rows.

This commit is contained in:
Michael committed 2026-03-23 16:09:09 +01:00
1 parent bba6fe05e8
commit ffa257fda1
5 files changed
+73 -37

No files matched your search

+3 -1
View File
@@ -54,8 +54,10 @@ export interface ProductRow {
receptions12m: Record<string, number>;
/** Per-store breakdown (site → YYYYMM → qty) — always present even in TOTAL mode */
sales12mByStore?: Record<string, Record<string, number>>;
/** Per-store stock breakdown (site → YYYYMM → stock) */
/** Per-store stock breakdown (site → YYYYMM → stock fin de mois) */
stock12mByStore?: Record<string, Record<string, number>>;
/** Per-store reception breakdown (site → YYYYMM → qté reçue) */
receptions12mByStore?: Record<string, Record<string, number>>;
/** Per-store CA totals */
caByStore?: Record<string, number>;
/** Per-store quantity totals */