From 2019b9ff43825dd29a92eec9c827d45630ca7cc1 Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Mon, 16 Feb 2026 19:29:47 -0800 Subject: [PATCH] Use proper task types for delivery/pickup tasks - Looks up task type by name for the business instead of hardcoding ID - Dine-in: 'Deliver to Table' - Takeaway: 'Order Ready for Pickup' - Delivery: 'Deliver to Address' Co-Authored-By: Claude Opus 4.5 --- api/orders/updateStatus.cfm | 59 +++++++++++++++++++++++++++---------- 1 file changed, 43 insertions(+), 16 deletions(-) diff --git a/api/orders/updateStatus.cfm b/api/orders/updateStatus.cfm index af4d35f..393ac21 100644 --- a/api/orders/updateStatus.cfm +++ b/api/orders/updateStatus.cfm @@ -90,23 +90,48 @@ - - - + - - - + - + + + + + + + + + + + - + + + + + + + + + + + @@ -114,11 +139,11 @@ - + - + @@ -137,7 +162,7 @@ ) VALUES ( ?, ?, - 1, + ?, ?, ?, 0, @@ -146,11 +171,13 @@ ", [ { value = qOrder.BusinessID, cfsqltype = "cf_sql_integer" }, { value = OrderID, cfsqltype = "cf_sql_integer" }, + { value = taskTypeID, cfsqltype = "cf_sql_integer" }, { value = taskCategoryID, cfsqltype = "cf_sql_integer" }, { value = taskTitle, cfsqltype = "cf_sql_varchar" } ], { datasource = "payfrit" })> +