Include ServicePointID when creating delivery tasks

Needed for beacon dwell auto-completion to work.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
John Mizerek 2026-02-16 19:32:37 -08:00
parent 2019b9ff43
commit 06c4b99a66

View file

@ -154,6 +154,7 @@
INSERT INTO Tasks ( INSERT INTO Tasks (
BusinessID, BusinessID,
OrderID, OrderID,
ServicePointID,
TaskTypeID, TaskTypeID,
CategoryID, CategoryID,
Title, Title,
@ -165,12 +166,14 @@
?, ?,
?, ?,
?, ?,
?,
0, 0,
NOW() NOW()
) )
", [ ", [
{ value = qOrder.BusinessID, cfsqltype = "cf_sql_integer" }, { value = qOrder.BusinessID, cfsqltype = "cf_sql_integer" },
{ value = OrderID, 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 = taskTypeID, cfsqltype = "cf_sql_integer" },
{ value = taskCategoryID, cfsqltype = "cf_sql_integer" }, { value = taskCategoryID, cfsqltype = "cf_sql_integer" },
{ value = taskTitle, cfsqltype = "cf_sql_varchar" } { value = taskTitle, cfsqltype = "cf_sql_varchar" }