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>
38 lines
994 B
Text
38 lines
994 B
Text
<cfsetting showdebugoutput="false">
|
|
<cfsetting enablecfoutputonly="true">
|
|
<cfcontent type="application/json; charset=utf-8" reset="true">
|
|
|
|
<cfscript>
|
|
// Switch all beacons from one business to another
|
|
fromBiz = 27; // Big Dean's
|
|
toBiz = 17; // In-N-Out
|
|
|
|
queryExecute("
|
|
UPDATE lt_Beacon_Businesses_ServicePoints
|
|
SET BusinessID = :toBiz
|
|
WHERE BusinessID = :fromBiz
|
|
", { toBiz: toBiz, fromBiz: fromBiz }, { datasource: "payfrit" });
|
|
|
|
// Get current state
|
|
q = queryExecute("
|
|
SELECT lt.*, b.BusinessName
|
|
FROM lt_Beacon_Businesses_ServicePoints lt
|
|
JOIN Businesses b ON b.BusinessID = lt.BusinessID
|
|
", {}, { datasource: "payfrit" });
|
|
|
|
rows = [];
|
|
for (row in q) {
|
|
arrayAppend(rows, {
|
|
"BeaconID": row.BeaconID,
|
|
"BusinessID": row.BusinessID,
|
|
"BusinessName": row.BusinessName,
|
|
"ServicePointID": row.ServicePointID
|
|
});
|
|
}
|
|
|
|
writeOutput(serializeJSON({
|
|
"OK": true,
|
|
"MESSAGE": "Switched beacons from BusinessID #fromBiz# to #toBiz#",
|
|
"MAPPINGS": rows
|
|
}));
|
|
</cfscript>
|