From 3384f128e1ce029cfff4d9c68a221ad80a4eb1af Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Fri, 16 Jan 2026 09:55:45 -0800 Subject: [PATCH] Fix task acceptance incorrectly marking orders as delivered MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When accepting a task, the order status was being set to 4 (Delivery in progress), which caused the order to disappear from KDS and broke auto-complete functionality. The correct flow is: - Order at status 3 (Ready) → Worker accepts task → Order stays at 3 - Worker completes task → Order moves to status 5 (Delivered) Removed the order status update from accept.cfm so orders remain visible in KDS until the delivery task is actually completed. Co-Authored-By: Claude Sonnet 4.5 --- api/debug/checkTask.cfm | 55 +++++++++++++++++++++++++++++++++++++++++ api/tasks/accept.cfm | 13 +++------- 2 files changed, 58 insertions(+), 10 deletions(-) create mode 100644 api/debug/checkTask.cfm diff --git a/api/debug/checkTask.cfm b/api/debug/checkTask.cfm new file mode 100644 index 0000000..43afad8 --- /dev/null +++ b/api/debug/checkTask.cfm @@ -0,0 +1,55 @@ + + + + + + + #serializeJSON(arguments.payload)# + + + + + + + + + + + + + + + + + + + + + + diff --git a/api/tasks/accept.cfm b/api/tasks/accept.cfm index c77c303..2cef886 100644 --- a/api/tasks/accept.cfm +++ b/api/tasks/accept.cfm @@ -62,16 +62,9 @@ { value = TaskID, cfsqltype = "cf_sql_integer" } ], { datasource = "payfrit" })> - - - - + + +