diff --git a/src/features/grid/api/get-product-rows.ts b/src/features/grid/api/get-product-rows.ts index ae8577a..7d6bc35 100644 --- a/src/features/grid/api/get-product-rows.ts +++ b/src/features/grid/api/get-product-rows.ts @@ -65,6 +65,7 @@ export async function getProductRows(input: GetProductRowsInput): Promise(); + const byPeriod = new Map(); const storeMonths = new Map>(); // site → Set for (const entry of entries) { @@ -96,7 +97,7 @@ export async function getProductRows(input: GetProductRowsInput): Promise; - /** End-of-month stock levels, indexed by YYYYMM key (reconstructed from movements qtestock) */ + /** End-of-month stock levels, indexed by YYYYMM key */ stock12m: Record; + /** Monthly reception quantities, indexed by YYYYMM key */ + receptions12m: Record; totalQuantite: number; totalCa: number; totalMarge: number;