payfrit-works/api/admin
John Mizerek d225133c68 Add menu builder required selection UI and fix portal issues
Menu Builder - Required Selections:
- Added "Selection Rules" section for modifier groups
- Required (Yes/No) dropdown to mark if customer must select an option
- Max Selections input (0 = unlimited) to limit selections
- Visual "Required" badge (red) and "Max X" badge in modifier list
- Updated saveFromBuilder.cfm to persist ItemRequiresChildSelection
  and ItemMaxNumSelectionReq to database

Portal Fixes:
- Fixed menu-builder link to include BASE_PATH for local dev
- Fixed stats.cfm to not reference non-existent Categories table
- Menu items count now uses ItemParentItemID > 0 (not ItemCategoryID)

Stripe Configuration:
- Added api/config/stripe.cfm for centralized Stripe key management
- Supports test/live mode switching
- Fee configuration variables (5% customer, 5% business, 2.9% + $0.30 card)

Payment Intent API:
- Updated createPaymentIntent.cfm with proper fee structure
- Customer pays: subtotal + tax + tip + 5% Payfrit fee + card processing
- Platform receives 10% total (5% from customer + 5% from business)
- Saves fee breakdown to order record

Beacon Management:
- Updated switchBeacons.cfm to move beacons between businesses
- Currently configured: Big Dean's (27) -> In-N-Out (17)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-05 01:56:12 -08:00
..
checkUser.cfm Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
cleanupCategories.cfm Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
debugBigDeansDeactivated.cfm Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
debugBigDeansLinks.cfm Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
debugBigDeansTemplates.cfm Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
debugBigDeansTemplates2.cfm Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
debugBigDeansTemplates3.cfm Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
debugBusinesses.cfm Add Payfrit Works (WDS) support and task completion flow 2026-01-03 14:52:04 -08:00
debugTasks.cfm Add Payfrit Works (WDS) support and task completion flow 2026-01-03 14:52:04 -08:00
debugTasksRaw.cfm Add Payfrit Works (WDS) support and task completion flow 2026-01-03 14:52:04 -08:00
debugTemplateLinks.cfm Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
deleteOrphanModifiers.cfm Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
deleteOrphans.cfm Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
describeItems.cfm Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
eliminateCategories.cfm Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
fixBigDeansCategories.cfm Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
fixBigDeansModifiers.cfm Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
fixShakeFlavors.cfm Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
migrateModifierTemplates.cfm Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
resetTestData.cfm Add Payfrit Works (WDS) support and task completion flow 2026-01-03 14:52:04 -08:00
setupModifierTemplates.cfm Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
setupStations.cfm Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
switchBeacons.cfm Add menu builder required selection UI and fix portal issues 2026-01-05 01:56:12 -08:00
testTaskInsert.cfm Add Payfrit Works (WDS) support and task completion flow 2026-01-03 14:52:04 -08:00