Feature #661
openPOS: search an employee by name, not just their card number
0%
Description
A cashier -- or the employee tapping -- doesn't always have the card number handy. Added a "Or search by employee name" box on the POS Employee tab, filtering the existing employee-meals accounts list (already fetched for the Employee meals settings page, same canteen.employee_meals.read permission the card-resolve endpoint already requires) by name or code. Picking a result feeds that employee's active card number through the exact same resolve-card call a physical tap makes -- same refusal checks, same subsidy lookup, same everything downstream. An employee with no active card shows that directly.
No backend changes -- the accounts endpoint already returned everything needed.
Commit (pushed under the wrong Redmine number, #398; corrected here): 8bf97e9.
NP Updated by Navya P. 15 days ago
Follow-up: merged the separate "Or search by employee name" box back into the card-number box itself -- one field now does both, filtering the accounts list as the cashier types and resolving a card number on Enter. Enter also auto-picks a single unambiguous name match instead of trying to resolve the typed name as a card number.
Commit: 5a69b4e.