mirror of
https://github.com/R0m1k3/CollectFlow.git
synced 2026-10-12 09:46:56 +02:00
feat: add server-side API for fetching and processing comprehensive product data for the grid.
This commit is contained in:
1 parent
99954fb001
commit
53b85381fa
7 files changed
+152
-59
No files matched your search
@@ -52,6 +52,16 @@ export interface ProductRow {
|
||||
stock12m: Record<string, number>;
|
||||
/** Monthly reception quantities, indexed by YYYYMM key */
|
||||
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) */
|
||||
stock12mByStore?: Record<string, Record<string, number>>;
|
||||
/** Per-store CA totals */
|
||||
caByStore?: Record<string, number>;
|
||||
/** Per-store quantity totals */
|
||||
quantiteByStore?: Record<string, number>;
|
||||
/** Per-store margin totals */
|
||||
margeByStore?: Record<string, number>;
|
||||
totalQuantite: number;
|
||||
totalCa: number;
|
||||
totalMarge: number;
|
||||
|
||||
Reference in new issue
Block a user