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 <noreply@anthropic.com>
This commit is contained in:
John Mizerek 2026-03-01 13:13:08 -08:00
parent 61949586f5
commit 30dd0997b9

View file

@ -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 = [