payfrit-works/portal
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
..
index.html Add business portal, Stripe Connect, beacon APIs, and task system 2026-01-01 23:38:26 -08:00
login.html Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
menu-builder.html Add menu builder required selection UI and fix portal issues 2026-01-05 01:56:12 -08:00
portal.css Add business portal, Stripe Connect, beacon APIs, and task system 2026-01-01 23:38:26 -08:00
portal.js Add menu builder required selection UI and fix portal issues 2026-01-05 01:56:12 -08:00
station-assignment.html Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00