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 <noreply@anthropic.com>
This commit is contained in:
parent
d8333b3747
commit
17d17071d1
1 changed files with 5 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ try {
|
||||||
taskTypeQuery = queryTimed("
|
taskTypeQuery = queryTimed("
|
||||||
SELECT Name, Color, Icon
|
SELECT Name, Color, Icon
|
||||||
FROM tt_TaskTypes
|
FROM tt_TaskTypes
|
||||||
WHERE tt_TaskTypeID = :taskTypeID
|
WHERE ID = :taskTypeID
|
||||||
", { taskTypeID: taskTypeID }, { datasource: "payfrit" });
|
", { taskTypeID: taskTypeID }, { datasource: "payfrit" });
|
||||||
|
|
||||||
taskTitle = message;
|
taskTitle = message;
|
||||||
|
|
@ -44,10 +44,11 @@ try {
|
||||||
// Use message as details
|
// Use message as details
|
||||||
taskDetails = message;
|
taskDetails = message;
|
||||||
|
|
||||||
// Insert service bell task
|
// Insert service bell task with ServicePointID
|
||||||
queryTimed("
|
queryTimed("
|
||||||
INSERT INTO Tasks (
|
INSERT INTO Tasks (
|
||||||
BusinessID,
|
BusinessID,
|
||||||
|
ServicePointID,
|
||||||
TaskTypeID,
|
TaskTypeID,
|
||||||
CategoryID,
|
CategoryID,
|
||||||
OrderID,
|
OrderID,
|
||||||
|
|
@ -57,6 +58,7 @@ try {
|
||||||
ClaimedByUserID
|
ClaimedByUserID
|
||||||
) VALUES (
|
) VALUES (
|
||||||
:businessID,
|
:businessID,
|
||||||
|
:servicePointID,
|
||||||
:taskTypeID,
|
:taskTypeID,
|
||||||
0,
|
0,
|
||||||
:orderID,
|
:orderID,
|
||||||
|
|
@ -67,6 +69,7 @@ try {
|
||||||
)
|
)
|
||||||
", {
|
", {
|
||||||
businessID: businessID,
|
businessID: businessID,
|
||||||
|
servicePointID: servicePointID,
|
||||||
taskTypeID: taskTypeID,
|
taskTypeID: taskTypeID,
|
||||||
orderID: orderID,
|
orderID: orderID,
|
||||||
taskTitle: taskTitle,
|
taskTitle: taskTitle,
|
||||||
|
|
|
||||||
Reference in a new issue