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:
parent
2019b9ff43
commit
06c4b99a66
1 changed files with 3 additions and 0 deletions
|
|
@ -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" }
|
||||
|
|
|
|||
Reference in a new issue