Project

General

Profile

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

Added by Navya P. about 2 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
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.

Actions

Also available in: PDF Atom