payfrit-works/api
John Mizerek 1f4d06edba Add Payfrit Works (WDS) support and task completion flow
Task System:
- Tasks auto-created when KDS marks order Ready (status 3)
- Duplicate task prevention via TaskOrderID check
- Task completion now marks associated order as Completed (status 4)
- Fixed isNull() check for TaskCompletedOn (use len() instead)
- Added TaskOrderID to task queries for order linking

Worker APIs:
- api/workers/myBusinesses.cfm with GROUP BY to prevent duplicates
- api/tasks/listMine.cfm for worker's claimed tasks with filters
- api/tasks/complete.cfm updates both task and order status
- api/tasks/accept.cfm for claiming tasks

KDS/Portal:
- KDS only shows orders with status < 4
- Portal dashboard improvements

Admin/Debug:
- Debug endpoints for tasks and businesses
- Test data reset endpoint

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-03 14:52:04 -08:00
..
admin Add Payfrit Works (WDS) support and task completion flow 2026-01-03 14:52:04 -08:00
assignments Public businesses + servicepoints list endpoints; API allowlist; Lucee-safe JSON 2025-12-28 12:30:06 -08:00
auth fix: correct CFScript syntax in login endpoint 2025-12-29 10:01:43 -08:00
beacons Add business portal, Stripe Connect, beacon APIs, and task system 2026-01-01 23:38:26 -08:00
businesses Add business portal, Stripe Connect, beacon APIs, and task system 2026-01-01 23:38:26 -08:00
import Add Payfrit Works (WDS) support and task completion flow 2026-01-03 14:52:04 -08:00
menu Add Payfrit Works (WDS) support and task completion flow 2026-01-03 14:52:04 -08:00
orders Add Payfrit Works (WDS) support and task completion flow 2026-01-03 14:52:04 -08:00
portal Add business portal, Stripe Connect, beacon APIs, and task system 2026-01-01 23:38:26 -08:00
servicepoints checkpoint 2025-12-28 22:34:01 -08:00
stripe Add business portal, Stripe Connect, beacon APIs, and task system 2026-01-01 23:38:26 -08:00
tasks Add Payfrit Works (WDS) support and task completion flow 2026-01-03 14:52:04 -08:00
workers Add Payfrit Works (WDS) support and task completion flow 2026-01-03 14:52:04 -08:00
Application.cfm Add Payfrit Works (WDS) support and task completion flow 2026-01-03 14:52:04 -08:00