feat(fusion_clock): NFC kiosk employee search endpoint
Add /fusion_clock/kiosk/nfc/employee_search that delegates to the existing kiosk_search method, avoiding logic duplication. Adds TestEmployeeSearch HttpCase (33 tests total, all passing). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -237,3 +237,9 @@ class FusionClockNfcKiosk(http.Controller):
|
||||
'message': f'{employee.name} clocked out',
|
||||
'net_hours_today': round(attendance.x_fclk_net_hours or 0, 2),
|
||||
}
|
||||
|
||||
@http.route('/fusion_clock/kiosk/nfc/employee_search', type='jsonrpc', auth='user', methods=['POST'])
|
||||
def nfc_employee_search(self, query='', **kw):
|
||||
"""Delegate to the existing kiosk search to avoid duplication."""
|
||||
from .clock_kiosk import FusionClockKiosk
|
||||
return FusionClockKiosk().kiosk_search(query=query)
|
||||
|
||||
Reference in New Issue
Block a user