Project

General

Profile

Actions

Feature #677

open
NP

Recipes: Used in column - todays real per-slot demand

Feature #677: Recipes: Used in column - todays real per-slot demand

Added by Navya P. 14 days ago.

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

0%

Estimated time:
Resolved By:

Description

Add a 'Used in' column to Recipes & costing, matching the prototype column of the same name, showing todays real count per meal slot for each recipe -- never a forecast.

Patient-tray recipes: ProductionPlanLine.PatientPortions for todays service date (already live from active diet orders).
Counter-sold recipes: todays completed sales, bucketed by Sale.ConsumptionMealSlotId -- the same slot ProductionConsumptionPoster already resolves and snapshots on every sale completion (used for the cook sheets own Served so far column). No new slot-classification logic was needed.

Backend: RecipeDto.UsedInToday (new RecipeUsageDto { Label, Count }), computed in RecipeService from ProductionPlanLine + Sale/SaleLine, no new endpoint or permission (rides on canteen.recipes.read). Frontend: new column on the Recipes & costing table.

No data to display

Actions

Also available in: PDF Atom