From 30dd0997b93b7dddb03b63f7900c4f97c45ba9f4 Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Sun, 1 Mar 2026 13:13:08 -0800 Subject: [PATCH] Seed order-fulfillment task types on business creation Add Deliver to Table, Order Ready for Pickup, and Deliver to Address to the default task types created by the setup wizard. These are required by updateStatus.cfm to auto-create tasks at status 3. Co-Authored-By: Claude Opus 4.6 --- api/setup/saveWizard.cfm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/api/setup/saveWizard.cfm b/api/setup/saveWizard.cfm index 920e75b..818af9f 100644 --- a/api/setup/saveWizard.cfm +++ b/api/setup/saveWizard.cfm @@ -256,7 +256,10 @@ try { defaultTaskTypes = [ { name: "Call Staff", icon: "notifications", color: "##9C27B0", description: "Request staff assistance" }, { name: "Chat With Staff", icon: "chat", color: "##2196F3", description: "Open a chat conversation" }, - { name: "Pay With Cash", icon: "payments", color: "##4CAF50", description: "Request to pay with cash" } + { name: "Pay With Cash", icon: "payments", color: "##4CAF50", description: "Request to pay with cash" }, + { name: "Deliver to Table", icon: "restaurant", color: "##FF9800", description: "Deliver completed order to table" }, + { name: "Order Ready for Pickup", icon: "shopping_bag", color: "##00BCD4", description: "Notify customer their order is ready" }, + { name: "Deliver to Address", icon: "local_shipping", color: "##795548", description: "Deliver order to customer address" } ]; for (tt = 1; tt <= arrayLen(defaultTaskTypes); tt++) { @@ -273,7 +276,7 @@ try { sortOrder: { value: tt, cfsqltype: "cf_sql_integer" } }, { datasource: "payfrit" }); } - response.steps.append("Created 3 default task types (Call Staff, Chat With Staff, Pay With Cash)"); + response.steps.append("Created 6 default task types"); // Create default task categories for the business defaultTaskCategories = [