Actions
Feature #158
open
NP
NP
Canteen POS: employee sale with subsidy under row lock
Feature #158:
Canteen POS: employee sale with subsidy under row lock
Start date:
09/28/2026
Due date:
% Done:
0%
Estimated time:
Resolved By:
Description
Ring a staff meal against the employee's month.
- POS Employee tab: scan or type a card number, see the employee, the rule and how much of the month's cap is left.
- The quote shows the subsidy live, but the final figure is recomputed under the employee account row lock inside the sale transaction, so two tills cannot both take the last of a cap.
- Lock order written down: employee account, then day lock, then bill counter.
- Refusals (no rule, cap reached, card not usable) shown in the portal's own wording.
- Race tests run many concurrent sales and were checked by removing the lock and seeing them fail.
Built and tested on integration/canteen-v1; merge to dev pending.
NP Updated by Navya P. about 1 month ago
- Status changed from New to In Progress
Work started (see prior commits).
NP Updated by Navya P. about 1 month ago
- Status changed from In Progress to Resolved
- Resolved By set to Navya P.
feat(canteen): employee sale, subsidy recomputed under the account lock (59859a2); POS employee tab + /employee-meals page (e074f87).
Built and tested (API unit + integration, portal) on integration/canteen-v1. Merge to dev pending - see the module's week-4 TDD plan.
Actions