From 17d17071d17073ebe6c6b10178a0da153908a925 Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Fri, 6 Feb 2026 17:42:56 -0800 Subject: [PATCH] Fix service bell task to include ServicePointID - Add ServicePointID to INSERT statement for service bell tasks - Fix tt_TaskTypes query to use ID instead of tt_TaskTypeID Co-Authored-By: Claude Opus 4.5 --- api/tasks/create.cfm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/api/tasks/create.cfm b/api/tasks/create.cfm index 8595b64..b947e8e 100644 --- a/api/tasks/create.cfm +++ b/api/tasks/create.cfm @@ -33,7 +33,7 @@ try { taskTypeQuery = queryTimed(" SELECT Name, Color, Icon FROM tt_TaskTypes - WHERE tt_TaskTypeID = :taskTypeID + WHERE ID = :taskTypeID ", { taskTypeID: taskTypeID }, { datasource: "payfrit" }); taskTitle = message; @@ -44,10 +44,11 @@ try { // Use message as details taskDetails = message; - // Insert service bell task + // Insert service bell task with ServicePointID queryTimed(" INSERT INTO Tasks ( BusinessID, + ServicePointID, TaskTypeID, CategoryID, OrderID, @@ -57,6 +58,7 @@ try { ClaimedByUserID ) VALUES ( :businessID, + :servicePointID, :taskTypeID, 0, :orderID, @@ -67,6 +69,7 @@ try { ) ", { businessID: businessID, + servicePointID: servicePointID, taskTypeID: taskTypeID, orderID: orderID, taskTitle: taskTitle,