From 06c4b99a66685f89cb55afd5f0519c97aa3c0501 Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Mon, 16 Feb 2026 19:32:37 -0800 Subject: [PATCH] Include ServicePointID when creating delivery tasks Needed for beacon dwell auto-completion to work. Co-Authored-By: Claude Opus 4.5 --- api/orders/updateStatus.cfm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/orders/updateStatus.cfm b/api/orders/updateStatus.cfm index 393ac21..b33aab4 100644 --- a/api/orders/updateStatus.cfm +++ b/api/orders/updateStatus.cfm @@ -154,6 +154,7 @@ INSERT INTO Tasks ( BusinessID, OrderID, + ServicePointID, TaskTypeID, CategoryID, Title, @@ -165,12 +166,14 @@ ?, ?, ?, + ?, 0, NOW() ) ", [ { value = qOrder.BusinessID, cfsqltype = "cf_sql_integer" }, { value = OrderID, cfsqltype = "cf_sql_integer" }, + { value = qOrder.ServicePointID, cfsqltype = "cf_sql_integer", null = isNull(qOrder.ServicePointID) OR val(qOrder.ServicePointID) EQ 0 }, { value = taskTypeID, cfsqltype = "cf_sql_integer" }, { value = taskCategoryID, cfsqltype = "cf_sql_integer" }, { value = taskTitle, cfsqltype = "cf_sql_varchar" }